glib r6993 - in trunk: . glib



Author: matthiasc
Date: Tue Jun 10 17:03:15 2008
New Revision: 6993
URL: http://svn.gnome.org/viewvc/glib?rev=6993&view=rev

Log:
        Bug 536158 â also bump GHashTable version when a node is removed via
        g_hash_table_iter_remove()/g_hash_table_iter_steal()

        * glib/ghash.c (iter_remove_or_steal): Bump the hash table
        version. Patch by Jean-Yves Lefort



Modified:
   trunk/ChangeLog
   trunk/glib/ghash.c

Modified: trunk/glib/ghash.c
==============================================================================
--- trunk/glib/ghash.c	(original)
+++ trunk/glib/ghash.c	Tue Jun 10 17:03:15 2008
@@ -530,6 +530,11 @@
   g_slice_free (GHashNode, node);
 
   ri->hash_table->nnodes--;
+
+#ifndef G_DISABLE_ASSERT
+  ri->version++;
+  ri->hash_table->version++;
+#endif
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]