[easytag] Fix memory leak of a path in a browser error path
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix memory leak of a path in a browser error path
- Date: Tue, 4 Nov 2014 16:51:47 +0000 (UTC)
commit de33ecf87262d39cf6a953ec64b12df810d3b000
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 7fb3446..2d4cdce 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -858,12 +858,16 @@ Browser_Tree_Node_Selected (EtBrowser *self, GtkTreeSelection *selection)
{
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]