Fix the locking of the mem_chunks list. (#127096, Balazs Scheidler)

Sun Dec 21 22:42:42 2003  Matthias Clasen  <maclas@gmx.de>

	* glib/gmem.c (g_mem_chunk_destroy): Fix the locking of the
	mem_chunks list.  (#127096, Balazs Scheidler)
This commit is contained in:
Matthias Clasen 2003-12-21 21:51:39 +00:00 committed by Matthias Clasen
parent 421f6d3b18
commit 53e132ed39
7 changed files with 31 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Dec 21 22:42:42 2003 Matthias Clasen <maclas@gmx.de>
* glib/gmem.c (g_mem_chunk_destroy): Fix the locking of the
mem_chunks list. (#127096, Balazs Scheidler)
2003-12-14 Hans Breuer <hans@breuer.org>
* glib/gfileutils.c : make g_file_test(,G_FILE_TEST_IS_EXECUTABLE)

View File

@ -1,3 +1,8 @@
Sun Dec 21 22:42:42 2003 Matthias Clasen <maclas@gmx.de>
* glib/gmem.c (g_mem_chunk_destroy): Fix the locking of the
mem_chunks list. (#127096, Balazs Scheidler)
2003-12-14 Hans Breuer <hans@breuer.org>
* glib/gfileutils.c : make g_file_test(,G_FILE_TEST_IS_EXECUTABLE)

View File

@ -1,3 +1,8 @@
Sun Dec 21 22:42:42 2003 Matthias Clasen <maclas@gmx.de>
* glib/gmem.c (g_mem_chunk_destroy): Fix the locking of the
mem_chunks list. (#127096, Balazs Scheidler)
2003-12-14 Hans Breuer <hans@breuer.org>
* glib/gfileutils.c : make g_file_test(,G_FILE_TEST_IS_EXECUTABLE)

View File

@ -1,3 +1,8 @@
Sun Dec 21 22:42:42 2003 Matthias Clasen <maclas@gmx.de>
* glib/gmem.c (g_mem_chunk_destroy): Fix the locking of the
mem_chunks list. (#127096, Balazs Scheidler)
2003-12-14 Hans Breuer <hans@breuer.org>
* glib/gfileutils.c : make g_file_test(,G_FILE_TEST_IS_EXECUTABLE)

View File

@ -1,3 +1,8 @@
Sun Dec 21 22:42:42 2003 Matthias Clasen <maclas@gmx.de>
* glib/gmem.c (g_mem_chunk_destroy): Fix the locking of the
mem_chunks list. (#127096, Balazs Scheidler)
2003-12-14 Hans Breuer <hans@breuer.org>
* glib/gfileutils.c : make g_file_test(,G_FILE_TEST_IS_EXECUTABLE)

View File

@ -1,3 +1,8 @@
Sun Dec 21 22:42:42 2003 Matthias Clasen <maclas@gmx.de>
* glib/gmem.c (g_mem_chunk_destroy): Fix the locking of the
mem_chunks list. (#127096, Balazs Scheidler)
2003-12-14 Hans Breuer <hans@breuer.org>
* glib/gfileutils.c : make g_file_test(,G_FILE_TEST_IS_EXECUTABLE)

View File

@ -717,12 +717,12 @@ g_mem_chunk_destroy (GMemChunk *mem_chunk)
g_free (temp_area);
}
g_mutex_lock (mem_chunks_lock);
if (mem_chunk->next)
mem_chunk->next->prev = mem_chunk->prev;
if (mem_chunk->prev)
mem_chunk->prev->next = mem_chunk->next;
g_mutex_lock (mem_chunks_lock);
if (mem_chunk == mem_chunks)
mem_chunks = mem_chunks->next;
g_mutex_unlock (mem_chunks_lock);