[easytag] Fix memory leak in Save_List_Of_Files



commit 55472b35587555374ea2b70a5a2eb5c32f702424
Author: David King <amigadave amigadave com>
Date:   Fri May 24 08:49:15 2013 +0100

    Fix memory leak in Save_List_Of_Files
    
    Free a tree path when returning early.

 src/easytag.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index 9945605..a862fd0 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -2456,6 +2456,10 @@ Save_List_Of_Files (GList *etfilelist, gboolean force_saving_files)
                 Tag_Area_Set_Sensitive(TRUE);
                 File_Area_Set_Sensitive(TRUE);
 
+                if (currentPath)
+                {
+                    gtk_tree_path_free (currentPath);
+                }
                 return -1; /* We stop all actions */
             }
         }


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