[gtk+/portal] Don't leak manually constructed D-Bus messages
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/portal] Don't leak manually constructed D-Bus messages
- Date: Thu, 7 Jul 2016 03:29:07 +0000 (UTC)
commit bd6adf7d75c02f9980c5b97d517e3f6b89295f84
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 6 20:32:56 2016 -0400
Don't leak manually constructed D-Bus messages
Spotted by Cosimo.
gtk/gtkfilechoosernativeportal.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechoosernativeportal.c b/gtk/gtkfilechoosernativeportal.c
index 12377d7..48deff3 100644
--- a/gtk/gtkfilechoosernativeportal.c
+++ b/gtk/gtkfilechoosernativeportal.c
@@ -163,6 +163,8 @@ send_close (FilechooserPortalData *data)
g_warning ("unable to send FileChooser Close message: %s", error->message);
g_error_free (error);
}
+
+ g_object_unref (message);
}
static void
@@ -387,6 +389,8 @@ gtk_file_chooser_native_portal_show (GtkFileChooserNative *self)
open_file_msg_cb,
data);
+ g_object_unref (message);
+
self->mode_data = data;
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]