[Xfce4-commits] <tumbler:master> Fix memory leaks in the pixbuf thumbnailer plugin.
Jannis Pohlmann
noreply at xfce.org
Mon Nov 16 14:54:04 CET 2009
Updating branch refs/heads/master
to cfd4bdbcc1c93dda0a42dc8d563545444f04bd48 (commit)
from 5ee1adb916e8e755e043fd9e048129369544930c (commit)
commit cfd4bdbcc1c93dda0a42dc8d563545444f04bd48
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Wed Nov 11 01:44:19 2009 +0100
Fix memory leaks in the pixbuf thumbnailer plugin.
.../pixbuf-thumbnailer-provider.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer-provider.c b/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer-provider.c
index 6b4fc1e..763673d 100644
--- a/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer-provider.c
+++ b/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer-provider.c
@@ -158,6 +158,8 @@ pixbuf_thumbnailer_provider_get_thumbnailers (TumblerThumbnailerProvider *provid
/* NULL-terminate the array */
mime_types[n] = NULL;
+ g_list_free (keys);
+
/* create the pixbuf thumbnailer */
thumbnailer = g_object_new (TYPE_PIXBUF_THUMBNAILER,
"uri-schemes", uri_schemes, "mime-types", mime_types,
@@ -167,6 +169,8 @@ pixbuf_thumbnailer_provider_get_thumbnailers (TumblerThumbnailerProvider *provid
g_strfreev (uri_schemes);
g_strfreev (mime_types);
+ g_hash_table_unref (types);
+
/* add the thumbnailer to the list */
thumbnailers = g_list_append (thumbnailers, thumbnailer);
More information about the Xfce4-commits
mailing list