mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 21:58:03 +02:00
2005-05-06 Robert McQueen <robot101@debian.org>
* glib/dbus-gtype-specialized.c: Fix obvious leak of GArray in every call to dbus_g_type_get_struct.
This commit is contained in:
parent
bc4bb30c8f
commit
781a7bc439
2 changed files with 12 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-05-06 Robert McQueen <robot101@debian.org>
|
||||
|
||||
* glib/dbus-gtype-specialized.c: Fix obvious leak of GArray in every
|
||||
call to dbus_g_type_get_struct.
|
||||
|
||||
2005-05-06 Robert McQueen <robot101@debian.org>
|
||||
|
||||
* glib/dbus-gvalue-utils.c: Fix the failing test where static string
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ dbus_g_type_get_struct (const char *container,
|
|||
...)
|
||||
{
|
||||
GArray *types;
|
||||
GType curtype;
|
||||
GType curtype, ret;
|
||||
va_list args;
|
||||
va_start (args, first_type);
|
||||
|
||||
|
|
@ -404,8 +404,13 @@ dbus_g_type_get_struct (const char *container,
|
|||
curtype = va_arg (args, GType);
|
||||
}
|
||||
va_end (args);
|
||||
return lookup_or_register_specialized (container, types->len, (GType*)types->data);
|
||||
|
||||
ret = lookup_or_register_specialized (container, types->len,
|
||||
(GType *) types->data);
|
||||
|
||||
g_array_free (types, TRUE);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue