[gimp] plug-ins: screenshot: unref the GDBusProxy when done



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]