glib r7112 - in branches/glib-2-16: . glib
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7112 - in branches/glib-2-16: . glib
- Date: Mon, 30 Jun 2008 22:19:07 +0000 (UTC)
Author: matthiasc
Date: Mon Jun 30 22:19:07 2008
New Revision: 7112
URL: http://svn.gnome.org/viewvc/glib?rev=7112&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:
branches/glib-2-16/ChangeLog
branches/glib-2-16/glib/ghash.c
Modified: branches/glib-2-16/glib/ghash.c
==============================================================================
--- branches/glib-2-16/glib/ghash.c (original)
+++ branches/glib-2-16/glib/ghash.c Mon Jun 30 22:19:07 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]