[libsoup] soup-cache: Fix a memory leak.
- From: Christophe Dumez <cdumez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-cache: Fix a memory leak.
- Date: Wed, 19 Dec 2012 09:41:19 +0000 (UTC)
commit 4eed2047493d1956184d9310e1b1b3b28472763d
Author: Sudarsana Nagineni <sudarsana nagineni intel com>
Date: Tue Dec 18 00:11:13 2012 +0200
soup-cache: Fix a memory leak.
The GFileInfo returned by g_file_enumerator_next_file() must be freed with g_object_unref().
https://bugzilla.gnome.org/show_bug.cgi?id=690382
libsoup/soup-cache.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index da89ddf..7130c5c 100644
--- a/libsoup/soup-cache.c
+++ b/libsoup/soup-cache.c
@@ -1291,6 +1291,7 @@ clear_cache_files (SoupCache *cache)
g_file_delete (cache_file, NULL, NULL);
g_object_unref (cache_file);
}
+ g_object_unref (file_info);
}
g_object_unref (file_enumerator);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]