[glib: 5/19] gmarshal-internal: Fix string leakage due to misplaced check
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 5/19] gmarshal-internal: Fix string leakage due to misplaced check
- Date: Mon, 18 Oct 2021 11:03:34 +0000 (UTC)
commit e90eaff4907f415a2b6a505531863b13ae770415
Author: Egor Bychin <e bychin drweb com>
Date: Mon Oct 11 13:59:05 2021 +0300
gmarshal-internal: Fix string leakage due to misplaced check
gio/gmarshal-internal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gmarshal-internal.c b/gio/gmarshal-internal.c
index 6858907ee..f3f7800ed 100644
--- a/gio/gmarshal-internal.c
+++ b/gio/gmarshal-internal.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]