[glib: 1/2] gdesktopappinfo: Fix a leak when launching URIs over D-Bus
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gdesktopappinfo: Fix a leak when launching URIs over D-Bus
- Date: Fri, 18 Feb 2022 12:06:14 +0000 (UTC)
commit f6aafcd028cb6d5b05bd4c7c1fa0c321c6dad6f2
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Feb 18 02:37:37 2022 +0000
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>
gio/gdesktopappinfo.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 80f936ca1..058ddca2a 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -3155,6 +3155,8 @@ launch_uris_with_dbus (GDesktopAppInfo *info,
NULL, G_DBUS_CALL_FLAGS_NONE, -1,
cancellable, launch_uris_with_dbus_signal_cb, g_steal_pointer (&data));
g_free (object_path);
+
+ g_variant_dict_clear (&dict);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]