Allow hash table destroy notifiers to remove other entries
authorBenjamin Berg <benjamin@sipsolutions.net>
Fri, 17 Oct 2014 12:16:22 +0000 (14:16 +0200)
committerRyan Lortie <desrt@desrt.ca>
Fri, 17 Oct 2014 12:29:26 +0000 (14:29 +0200)
commit18745ff674896c931379d097b18d74678044668e
treea32a97d3a04b2f084032f3f006c7043b1c8439eb
parentcb042bf5b5750a31f93b122b49f5a90975a5ed6a
Allow hash table destroy notifiers to remove other entries

With this patch it is fine to call g_hash_table_lookup and
g_hash_table_remove from destroy notification functions. Before
this could lead to an infinitie loop if g_hash_table_remove_all
was used.

https://bugzilla.gnome.org/show_bug.cgi?id=695082
glib/ghash.c
glib/tests/hash.c