From 3c465449d9d94813420658ab7d9dde1038eb72a9 Mon Sep 17 00:00:00 2001 From: Nick Schermer <nick@xfce.org> Date: Mon, 2 Apr 2012 18:10:43 +0200 Subject: [PATCH] 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 7ec3954bd..90762b691 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 b902d4ebf..78cb7ab0a 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); -- GitLab