[Xfce4-commits] <tumbler:jannis/specialized> Fix memory leaks in the pixbuf thumbnailer plugin.

Jannis Pohlmann noreply at xfce.org
Wed Nov 11 01:52:01 CET 2009


Updating branch refs/heads/jannis/specialized
         to 3ba728e30d5c104789015c747ced6014734919af (commit)
       from 7643d8ba2b97791d9db77e0f971b35777bc2f4fe (commit)

commit 3ba728e30d5c104789015c747ced6014734919af
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