Fix nasty double free crashes
authorKlaus Ethgen <Klaus@Ethgen.de>
Mon, 15 Feb 2016 21:09:52 +0000 (22:09 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Mon, 15 Feb 2016 21:09:52 +0000 (22:09 +0100)
commit4ca4c1ffa10b6af17517911402a25f76e5c8e32b
tree1862f592facda298294221b2933bd4ce3aa1b724
parente9fc1363be4852aac7705a4423e7dceee84af892
Fix nasty double free crashes

Old GTK+ versions seemed to be robust about this double free so we seen
that crashes or 100% CPU usages just with modern versions.

This patch takes care of it on two places:
1. Hashes will not be freed by g_hash_table_destroy when empty
2. NULLify the enty variable after free
src/collect-io.c