projects
/
platform
/
upstream
/
libsoup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00fa1ad
)
soup-cache: Fix a memory leak.
author
Sudarsana Nagineni
<sudarsana.nagineni@intel.com>
Mon, 17 Dec 2012 22:11:13 +0000
(
00:11
+0200)
committer
Christophe Dumez
<christophe.dumez@intel.com>
Wed, 19 Dec 2012 09:41:51 +0000
(11:41 +0200)
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
patch
|
blob
|
history
diff --git
a/libsoup/soup-cache.c
b/libsoup/soup-cache.c
index
da89ddf
..
7130c5c
100644
(file)
--- 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);
}