[gimp] app: don't leak the passed file in file_open_dialog_show()



commit b27f3ff4607221de466f0954cc1f49866a5f80f2
Author: Michael Natterer <mitch gimp org>
Date:   Wed Sep 28 01:12:17 2016 +0200

    app: don't leak the passed file in file_open_dialog_show()
    
    That ref should have been removed in commit ff6ea69.

 app/actions/file-commands.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/app/actions/file-commands.c b/app/actions/file-commands.c
index b4b79ce..71ca371 100644
--- a/app/actions/file-commands.c
+++ b/app/actions/file-commands.c
@@ -587,9 +587,6 @@ file_open_dialog_show (Gimp        *gimp,
                                            NULL /*ui_manager*/,
                                            "gimp-file-open-dialog", -1, FALSE);
 
-  if (file)
-    g_object_ref (file);
-
   if (dialog)
     {
       if (! file && image)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]