[gvfs/gnome-3-20] common: Fix memory leak



commit 290797b1d0cd08eb6052951f1141b706ea7d3afc
Author: Ondrej Holy <oholy redhat com>
Date:   Mon Mar 27 19:04:42 2017 +0200

    common: Fix memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747412

 common/gvfsmountinfo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/common/gvfsmountinfo.c b/common/gvfsmountinfo.c
index 2c36551..290033e 100644
--- a/common/gvfsmountinfo.c
+++ b/common/gvfsmountinfo.c
@@ -553,6 +553,7 @@ bdmv_metadata_thread (GSimpleAsyncResult *result,
       g_simple_async_result_set_op_res_gpointer (result,
                                                  g_file_icon_new (icon_file),
                                                  NULL);
+      g_object_unref (icon_file);
     }
   else
     {


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