mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
Only set vtable_set if the vtable is set.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmem.c (g_mem_set_vtable): Only set vtable_set if the
|
||||||
|
vtable is set. (#154352, Philippe Blain)
|
||||||
|
|
||||||
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.c: (parse_arg):
|
* glib/goption.c: (parse_arg):
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmem.c (g_mem_set_vtable): Only set vtable_set if the
|
||||||
|
vtable is set. (#154352, Philippe Blain)
|
||||||
|
|
||||||
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.c: (parse_arg):
|
* glib/goption.c: (parse_arg):
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmem.c (g_mem_set_vtable): Only set vtable_set if the
|
||||||
|
vtable is set. (#154352, Philippe Blain)
|
||||||
|
|
||||||
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.c: (parse_arg):
|
* glib/goption.c: (parse_arg):
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmem.c (g_mem_set_vtable): Only set vtable_set if the
|
||||||
|
vtable is set. (#154352, Philippe Blain)
|
||||||
|
|
||||||
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.c: (parse_arg):
|
* glib/goption.c: (parse_arg):
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2004-10-04 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmem.c (g_mem_set_vtable): Only set vtable_set if the
|
||||||
|
vtable is set. (#154352, Philippe Blain)
|
||||||
|
|
||||||
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
2004-10-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.c: (parse_arg):
|
* glib/goption.c: (parse_arg):
|
||||||
|
@@ -248,7 +248,6 @@ g_mem_set_vtable (GMemVTable *vtable)
|
|||||||
{
|
{
|
||||||
if (!vtable_set)
|
if (!vtable_set)
|
||||||
{
|
{
|
||||||
vtable_set = TRUE;
|
|
||||||
if (vtable->malloc && vtable->realloc && vtable->free)
|
if (vtable->malloc && vtable->realloc && vtable->free)
|
||||||
{
|
{
|
||||||
glib_mem_vtable.malloc = vtable->malloc;
|
glib_mem_vtable.malloc = vtable->malloc;
|
||||||
@@ -257,6 +256,7 @@ g_mem_set_vtable (GMemVTable *vtable)
|
|||||||
glib_mem_vtable.calloc = vtable->calloc ? vtable->calloc : fallback_calloc;
|
glib_mem_vtable.calloc = vtable->calloc ? vtable->calloc : fallback_calloc;
|
||||||
glib_mem_vtable.try_malloc = vtable->try_malloc ? vtable->try_malloc : glib_mem_vtable.malloc;
|
glib_mem_vtable.try_malloc = vtable->try_malloc ? vtable->try_malloc : glib_mem_vtable.malloc;
|
||||||
glib_mem_vtable.try_realloc = vtable->try_realloc ? vtable->try_realloc : glib_mem_vtable.realloc;
|
glib_mem_vtable.try_realloc = vtable->try_realloc ? vtable->try_realloc : glib_mem_vtable.realloc;
|
||||||
|
vtable_set = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
g_warning (G_STRLOC ": memory allocation vtable lacks one of malloc(), realloc() or free()");
|
g_warning (G_STRLOC ": memory allocation vtable lacks one of malloc(), realloc() or free()");
|
||||||
|
Reference in New Issue
Block a user