Commit 5b492c98 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Fix problem where if g_mem_chunk_reset() is called on an alloc-only

Fri Mar 22 17:59:27 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmem.c (g_mem_chunk_reset): Fix problem where
        if g_mem_chunk_reset() is called on an alloc-only
        memchunk, then a useles GTree was created.
parent 20b0580b
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
if g_mem_chunk_reset() is called on an alloc-only
memchunk, then a useles GTree was created.
Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com> Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
* glib/gconvert.c (open_converter): Try to work around segfaults * glib/gconvert.c (open_converter): Try to work around segfaults
......
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
if g_mem_chunk_reset() is called on an alloc-only
memchunk, then a useles GTree was created.
Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com> Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
* glib/gconvert.c (open_converter): Try to work around segfaults * glib/gconvert.c (open_converter): Try to work around segfaults
......
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
if g_mem_chunk_reset() is called on an alloc-only
memchunk, then a useles GTree was created.
Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com> Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
* glib/gconvert.c (open_converter): Try to work around segfaults * glib/gconvert.c (open_converter): Try to work around segfaults
......
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
if g_mem_chunk_reset() is called on an alloc-only
memchunk, then a useles GTree was created.
Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com> Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
* glib/gconvert.c (open_converter): Try to work around segfaults * glib/gconvert.c (open_converter): Try to work around segfaults
......
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
if g_mem_chunk_reset() is called on an alloc-only
memchunk, then a useles GTree was created.
Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com> Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
* glib/gconvert.c (open_converter): Try to work around segfaults * glib/gconvert.c (open_converter): Try to work around segfaults
......
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
if g_mem_chunk_reset() is called on an alloc-only
memchunk, then a useles GTree was created.
Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com> Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
* glib/gconvert.c (open_converter): Try to work around segfaults * glib/gconvert.c (open_converter): Try to work around segfaults
......
Fri Mar 22 17:59:27 2002 Owen Taylor <otaylor@redhat.com>
* glib/gmem.c (g_mem_chunk_reset): Fix problem where
if g_mem_chunk_reset() is called on an alloc-only
memchunk, then a useles GTree was created.
Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com> Wed Mar 20 18:20:21 2002 Owen Taylor <otaylor@redhat.com>
* glib/gconvert.c (open_converter): Try to work around segfaults * glib/gconvert.c (open_converter): Try to work around segfaults
......
...@@ -1021,8 +1021,10 @@ g_mem_chunk_reset (GMemChunk *mem_chunk) ...@@ -1021,8 +1021,10 @@ g_mem_chunk_reset (GMemChunk *mem_chunk)
mem_chunk->free_atoms = NULL; mem_chunk->free_atoms = NULL;
if (mem_chunk->mem_tree) if (mem_chunk->mem_tree)
g_tree_destroy (mem_chunk->mem_tree); {
mem_chunk->mem_tree = g_tree_new ((GCompareFunc) g_mem_chunk_area_compare); g_tree_destroy (mem_chunk->mem_tree);
mem_chunk->mem_tree = g_tree_new ((GCompareFunc) g_mem_chunk_area_compare);
}
LEAVE_MEM_CHUNK_ROUTINE (); LEAVE_MEM_CHUNK_ROUTINE ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment