[Xfce4-commits] <thunar:master> Hide thumb queue cleanup debug and plug memleak.

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


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

commit b8d7fbd18d9adb303eef4ea9d88958f4159df05e
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Apr 2 18:01:13 2012 +0200

    Hide thumb queue cleanup debug and plug memleak.

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

diff --git a/thunar/thunar-thumbnail-cache.c b/thunar/thunar-thumbnail-cache.c
index d1c482e..7ec3954 100644
--- a/thunar/thunar-thumbnail-cache.c
+++ b/thunar/thunar-thumbnail-cache.c
@@ -489,14 +489,18 @@ thunar_thumbnail_cache_process_cleanup_queue (ThunarThumbnailCache *cache)
   /* allocate a string array for the URIs */
   uris = g_new0 (gchar *, n_uris + 1);
 
+#ifndef NDEBUG
   g_debug ("cleanup:");
+#endif
 
   /* fill URI array with file URIs from the cleanup queue */
   for (lp = g_list_last (cache->cleanup_queue), n = 0; lp != NULL; lp = lp->prev, ++n)
     {
       uris[n] = g_file_get_uri (lp->data);
 
+#ifndef NDEBUG
       g_debug ("  %s", uris[n]);
+#endif
 
       /* release the file object */
       g_object_unref (lp->data);
@@ -509,7 +513,7 @@ thunar_thumbnail_cache_process_cleanup_queue (ThunarThumbnailCache *cache)
   thunar_thumbnail_cache_cleanup_async (cache, (const gchar *const *)uris);
 
   /* free the URI array */
-  g_free (uris);
+  g_strfreev (uris);
 
   /* release the cleanup queue list */
   g_list_free (cache->cleanup_queue);


More information about the Xfce4-commits mailing list