Fix for a memory leak in the stream cache
- From: Sergio Villar Senin <svillar igalia com>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: Fix for a memory leak in the stream cache
- Date: Thu, 21 Aug 2008 12:48:52 +0200
A hash table that was not freed in finalize
Br
Index: libtinymail/tny-fs-stream-cache.c
===================================================================
--- libtinymail/tny-fs-stream-cache.c (revision 3738)
+++ libtinymail/tny-fs-stream-cache.c (working copy)
@@ -337,6 +337,9 @@
TnyFsStreamCache *self = (TnyFsStreamCache *)object;
TnyFsStreamCachePriv *priv = TNY_FS_STREAM_CACHE_GET_PRIVATE (self);
+ if (priv->cached_files)
+ g_hash_table_unref (priv->cached_files);
+
if (priv->path) {
g_free (priv->path);
priv->path = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]