mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
gmarshal-internal: Fix string leakage due to misplaced check
This commit is contained in:
parent
5a032f32ea
commit
e90eaff490
@ -490,14 +490,14 @@ _g_cclosure_marshal_BOOLEAN__STRINGv (GClosure *closure,
|
||||
gpointer arg0;
|
||||
va_list args_copy;
|
||||
|
||||
g_return_if_fail (return_value != NULL);
|
||||
|
||||
G_VA_COPY (args_copy, args);
|
||||
arg0 = (gpointer) va_arg (args_copy, gpointer);
|
||||
if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL)
|
||||
arg0 = g_strdup (arg0);
|
||||
va_end (args_copy);
|
||||
|
||||
g_return_if_fail (return_value != NULL);
|
||||
|
||||
if (G_CCLOSURE_SWAP_DATA (closure))
|
||||
{
|
||||
data1 = closure->data;
|
||||
|
Loading…
Reference in New Issue
Block a user