[PATCH] local-metadata: fix memory leak on picture resolve



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

A reference was still hold on a GFile object.

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 src/metadata/local-metadata/grl-local-metadata.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/metadata/local-metadata/grl-local-metadata.c b/src/metadata/local-metadata/grl-local-metadata.c
index 0ba1fcc..d1e3208 100644
--- a/src/metadata/local-metadata/grl-local-metadata.c
+++ b/src/metadata/local-metadata/grl-local-metadata.c
@@ -570,6 +570,7 @@ resolve_image (GrlMetadataSource *source,
     g_file_query_info_async (file, G_FILE_ATTRIBUTE_THUMBNAIL_PATH,
                              G_FILE_QUERY_INFO_NONE, G_PRIORITY_DEFAULT, cancellable,
                              (GAsyncReadyCallback)got_file_info, rs);
+    g_object_unref (file);
   }
 }
 
-- 
1.7.5.4



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