mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
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)
This commit is contained in:
6
glist.c
6
glist.c
@@ -70,8 +70,8 @@ g_list_validate_allocator (GAllocator *allocator)
|
||||
void
|
||||
g_list_push_allocator(GAllocator *allocator)
|
||||
{
|
||||
g_list_validate_allocator ( allocator );
|
||||
g_lock (current_allocator);
|
||||
g_list_validate_allocator ( allocator );
|
||||
allocator->last = current_allocator;
|
||||
current_allocator = allocator;
|
||||
g_unlock (current_allocator);
|
||||
@@ -136,7 +136,6 @@ g_list_alloc (void)
|
||||
void
|
||||
g_list_free (GList *list)
|
||||
{
|
||||
#if 0
|
||||
if (list)
|
||||
{
|
||||
list->data = list->next;
|
||||
@@ -145,13 +144,11 @@ g_list_free (GList *list)
|
||||
current_allocator->free_lists = list;
|
||||
g_unlock (current_allocator);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
g_list_free_1 (GList *list)
|
||||
{
|
||||
#if 0
|
||||
if (list)
|
||||
{
|
||||
list->data = NULL;
|
||||
@@ -160,7 +157,6 @@ g_list_free_1 (GList *list)
|
||||
current_allocator->free_lists = list;
|
||||
g_unlock (current_allocator);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
GList*
|
||||
|
Reference in New Issue
Block a user