[Xfce4-commits] <thunar:master> Plug more leaks in thumbnailer.

Nick Schermer noreply at xfce.org
Mon Apr 2 18:28:01 CEST 2012


Updating branch refs/heads/master
         to 3c465449d9d94813420658ab7d9dde1038eb72a9 (commit)
       from b8d7fbd18d9adb303eef4ea9d88958f4159df05e (commit)

commit 3c465449d9d94813420658ab7d9dde1038eb72a9
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Apr 2 18:10:43 2012 +0200

    Plug more leaks in thumbnailer.

 thunar/thunar-thumbnail-cache.c |   10 +++++-----
 thunar/thunar-thumbnailer.c     |    1 +
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/thunar/thunar-thumbnail-cache.c b/thunar/thunar-thumbnail-cache.c
index 7ec3954..90762b6 100644
--- a/thunar/thunar-thumbnail-cache.c
+++ b/thunar/thunar-thumbnail-cache.c
@@ -331,8 +331,8 @@ thunar_thumbnail_cache_process_move_queue (ThunarThumbnailCache *cache)
                                      (const gchar **)target_uris);
 
   /* free the URI arrays */
-  g_free (source_uris);
-  g_free (target_uris);
+  g_strfreev (source_uris);
+  g_strfreev (target_uris);
 
   /* release the move queue lists */
   g_list_free (cache->move_source_queue);
@@ -398,8 +398,8 @@ thunar_thumbnail_cache_process_copy_queue (ThunarThumbnailCache *cache)
                                      (const gchar **)target_uris);
 
   /* free the URI arrays */
-  g_free (source_uris);
-  g_free (target_uris);
+  g_strfreev (source_uris);
+  g_strfreev (target_uris);
 
   /* release the copy queue lists */
   g_list_free (cache->copy_source_queue);
@@ -453,7 +453,7 @@ thunar_thumbnail_cache_process_delete_queue (ThunarThumbnailCache *cache)
   thunar_thumbnail_cache_delete_async (cache, (const gchar **)uris);
 
   /* free the URI array */
-  g_free (uris);
+  g_strfreev (uris);
 
   /* release the delete queue list */
   g_list_free (cache->delete_queue);
diff --git a/thunar/thunar-thumbnailer.c b/thunar/thunar-thumbnailer.c
index b902d4e..78cb7ab 100644
--- a/thunar/thunar-thumbnailer.c
+++ b/thunar/thunar-thumbnailer.c
@@ -858,6 +858,7 @@ thunar_thumbnailer_queue_files (ThunarThumbnailer *thumbnailer,
 
       /* free mime hints array */
       g_free (mime_hints);
+      g_strfreev (uris);
 
       /* free the list of supported files */
       g_list_free (supported_files);


More information about the Xfce4-commits mailing list