[grilo-plugins] local-metadata: fix memory leak on picture resolve
- From: Guillaume JÃrÃme Emont <guijemont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] local-metadata: fix memory leak on picture resolve
- Date: Tue, 12 Jul 2011 15:27:27 +0000 (UTC)
commit d68cd64fbe4855015665bac560dcfcbae8c86770
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date: Sun Jul 3 02:46:53 2011 +0100
local-metadata: fix memory leak on picture resolve
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 210cee9..7a0cc25 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]