[Xfce4-commits] <tumbler:master> Fix two more memory leeks. According to valgrind there are none left.
Jannis Pohlmann
jannis at xfce.org
Sat Sep 12 04:14:01 CEST 2009
Updating branch refs/heads/master
to 062d22be89e3b4b9ef02f4a30c128f37c0f80f11 (commit)
from 2ec7c01f9debd21e4f41280d57361acbe29d10e7 (commit)
commit 062d22be89e3b4b9ef02f4a30c128f37c0f80f11
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Sat Sep 12 04:12:16 2009 +0200
Fix two more memory leeks. According to valgrind there are none left.
tumblerd/tumbler-manager.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tumblerd/tumbler-manager.c b/tumblerd/tumbler-manager.c
index 5e77039..95da321 100644
--- a/tumblerd/tumbler-manager.c
+++ b/tumblerd/tumbler-manager.c
@@ -318,6 +318,9 @@ tumbler_manager_get_supported (TumblerManager *manager,
/* insert all MIME types into the hash table */
for (n = 0; mime_types != NULL && mime_types[n] != NULL; ++n)
g_hash_table_replace (types, g_strdup (mime_types[n]), NULL);
+
+ /* free MIME types array */
+ g_strfreev (mime_types);
}
/* relase the thumbnailer list */
@@ -345,4 +348,7 @@ tumbler_manager_get_supported (TumblerManager *manager,
g_hash_table_unref (types);
dbus_g_method_return (context, supported_types);
+
+ /* free the supported types */
+ g_strfreev (supported_types);
}
More information about the Xfce4-commits
mailing list