[easytag] Fix memory leak in Save_List_Of_Files
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix memory leak in Save_List_Of_Files
- Date: Fri, 24 May 2013 08:32:32 +0000 (UTC)
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]