summaryrefslogtreecommitdiff
path: root/glib/gnode.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-12-15 15:40:01 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-12-15 15:40:01 +0000
commitdcd0c664b778b5fa30385b1e52f32df76b20d462 (patch)
tree8e1ca36cdf1707dde01608912e7dba9f7d56a9b7 /glib/gnode.c
parent931ea952650b013b834041b91b0c37a748ffd449 (diff)
downloadglib-dcd0c664b778b5fa30385b1e52f32df76b20d462.tar.gz
Make sure all calls to g_node_validate_allocator are within
Tue Dec 15 10:40:09 1998 Owen Taylor <otaylor@redhat.com> * gnode.c glist.c gslist.c: Make sure all calls to g_node_validate_allocator are within current_allocator lock, so we have consistency on that point. (Should not really matter, but this way we match the comments) * glist.c (g_list_free_1): Removed some lines that should never have been committed. (For debugging)
Diffstat (limited to 'glib/gnode.c')
-rw-r--r--glib/gnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gnode.c b/glib/gnode.c
index 089a4996d..c9c135a85 100644
--- a/glib/gnode.c
+++ b/glib/gnode.c
@@ -74,8 +74,8 @@ g_node_validate_allocator (GAllocator *allocator)
void
g_node_push_allocator (GAllocator *allocator)
{
- g_node_validate_allocator ( allocator );
g_lock (current_allocator);
+ g_node_validate_allocator ( allocator );
allocator->last = current_allocator;
current_allocator = allocator;
g_unlock (current_allocator);