mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 03:34:05 +02:00
gdesktopappinfo: Fix a leak when launching URIs over D-Bus
If any platform data is set, the temporary `GVariantDict` was being leaked. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -3155,6 +3155,8 @@ launch_uris_with_dbus (GDesktopAppInfo *info,
|
|||||||
NULL, G_DBUS_CALL_FLAGS_NONE, -1,
|
NULL, G_DBUS_CALL_FLAGS_NONE, -1,
|
||||||
cancellable, launch_uris_with_dbus_signal_cb, g_steal_pointer (&data));
|
cancellable, launch_uris_with_dbus_signal_cb, g_steal_pointer (&data));
|
||||||
g_free (object_path);
|
g_free (object_path);
|
||||||
|
|
||||||
|
g_variant_dict_clear (&dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Reference in New Issue
Block a user