[gimp] plug-ins: screenshot: unref the GDBusProxy when done
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: screenshot: unref the GDBusProxy when done
- Date: Thu, 31 Mar 2016 09:48:36 +0000 (UTC)
commit 4a45ffeef9a3a65d2f823c1fbfc4d5dfe72659fb
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 31 11:47:59 2016 +0200
plug-ins: screenshot: unref the GDBusProxy when done
plug-ins/screenshot/screenshot-gnome-shell.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/screenshot/screenshot-gnome-shell.c b/plug-ins/screenshot/screenshot-gnome-shell.c
index 9d65da7..064469f 100644
--- a/plug-ins/screenshot/screenshot-gnome-shell.c
+++ b/plug-ins/screenshot/screenshot-gnome-shell.c
@@ -137,10 +137,16 @@ screenshot_gnome_shell_shoot (ScreenshotValues *shootvals,
g_unlink (filename);
g_free (filename);
+ g_object_unref (proxy);
+ proxy = NULL;
+
return GIMP_PDB_SUCCESS;
}
g_free (filename);
+ g_object_unref (proxy);
+ proxy = NULL;
+
return GIMP_PDB_EXECUTION_ERROR;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]