[easytag/easytag-2-2] Fix memory leak of a path in a browser error path



commit 13f3d991ce4ee697622e7de440bfe38e933f9e92
Author: David King <amigadave amigadave com>
Date:   Tue Nov 4 16:41:58 2014 +0000

    Fix memory leak of a path in a browser error path

 src/browser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index a548b2e..d684d37 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -705,12 +705,16 @@ Browser_Tree_Node_Selected (GtkTreeSelection *selection, gpointer user_data)
         {
             case GTK_RESPONSE_YES:
                 if (Save_All_Files_With_Answer(FALSE)==-1)
+                {
+                    g_free (pathName);
                     return TRUE;
+                }
                 break;
             case GTK_RESPONSE_NO:
                 break;
             case GTK_RESPONSE_CANCEL:
             case GTK_RESPONSE_DELETE_EVENT:
+                g_free (pathName);
                 return TRUE;
                 break;
             default:


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