soup-cache: Fix a memory leak.
authorSudarsana Nagineni <sudarsana.nagineni@intel.com>
Mon, 17 Dec 2012 22:11:13 +0000 (00:11 +0200)
committerChristophe 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

index da89ddf..7130c5c 100644 (file)
@@ -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);
        }