mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-21 08:28:53 +02:00
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 svn path=/branches/glib-2-16/; revision=7112
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
||||
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Backport from trunk:
|
||||
|
||||
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
|
||||
|
||||
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Backport from trunk:
|
||||
|
@@ -530,6 +530,11 @@ iter_remove_or_steal (RealIter *ri, gboolean notify)
|
||||
g_slice_free (GHashNode, node);
|
||||
|
||||
ri->hash_table->nnodes--;
|
||||
|
||||
#ifndef G_DISABLE_ASSERT
|
||||
ri->version++;
|
||||
ri->hash_table->version++;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user