[easytag] Fix leak of selected row list in CDDB dialog



commit 8efaf8c913219114beaccb4fc9dc009879cb8852
Author: David King <amigadave amigadave com>
Date:   Mon Nov 3 23:58:28 2014 +0000

    Fix leak of selected row list in CDDB dialog

 src/cddb_dialog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/cddb_dialog.c b/src/cddb_dialog.c
index 76932fd..642b1f1 100644
--- a/src/cddb_dialog.c
+++ b/src/cddb_dialog.c
@@ -2288,7 +2288,6 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
         {
             if(row == 0)
             {
-                selectedrows = g_list_first(selectedrows);
                 currentPath = (GtkTreePath *)selectedrows->data;
             } else
             {
@@ -2576,6 +2575,8 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
     }
 
     g_list_free_full (g_list_first (file_iterlist), (GDestroyNotify)g_free);
+    g_list_free_full (g_list_first (selectedrows),
+                      (GDestroyNotify)gtk_tree_path_free);
 
     et_application_window_browser_refresh_list (ET_APPLICATION_WINDOW (MainWindow));
     ET_Display_File_Data_To_UI(ETCore->ETFileDisplayed);


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