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



commit 917c270a1296f02a6caa3cc62f83a46dafd8eb2a
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 ca4d868..e3350c1 100644
--- a/common/gvfsmountinfo.c
+++ b/common/gvfsmountinfo.c
@@ -564,6 +564,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]