[nautilus] toolbar: fix progress leak



commit 940d6d7b6d2c7ff49e55d6ec7af4c5ff73687d02
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Oct 8 01:28:47 2015 +0200

    toolbar: fix progress leak

 src/nautilus-toolbar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index ab6c362..21fcbe7 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -600,13 +600,13 @@ on_progress_info_started_timeout (NautilusToolbar *self)
         filtered_progress_infos = get_filtered_progress_infos (self);
         if (!nautilus_progress_manager_are_all_infos_finished_or_cancelled (self->priv->progress_manager) &&
             g_list_length (progress_infos) != g_list_length (filtered_progress_infos)) {
+                g_list_free (filtered_progress_infos);
                 return G_SOURCE_CONTINUE;
         } else {
+                g_list_free (filtered_progress_infos);
                 self->priv->start_operations_timeout_id = 0;
                 return G_SOURCE_REMOVE;
         }
-
-        g_list_free (filtered_progress_infos);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]