[easytag/easytag-2-2] Fix memory leaks in Save_File() error paths
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/easytag-2-2] Fix memory leaks in Save_File() error paths
- Date: Sat, 22 Nov 2014 12:49:56 +0000 (UTC)
commit feb56e229d41a74637ea9fd865cd2f819199708b
Author: David King <amigadave amigadave com>
Date: Wed Nov 19 16:59:03 2014 +0000
Fix memory leaks in Save_File() error paths
src/easytag.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index 1117931..bb8c069 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -2825,6 +2825,10 @@ Save_File (ET_File *ETFile, gboolean multiple_files,
if (rc != TRUE && !SF_HideMsgbox_Write_Tag)
{
stop_loop = -1;
+
+ g_free (basename_cur_utf8);
+ g_free (basename_new_utf8);
+
return stop_loop;
}
break;
@@ -2834,6 +2838,10 @@ Save_File (ET_File *ETFile, gboolean multiple_files,
case GTK_RESPONSE_CANCEL:
case GTK_RESPONSE_DELETE_EVENT:
stop_loop = -1;
+
+ g_free (basename_cur_utf8);
+ g_free (basename_new_utf8);
+
return stop_loop;
break;
default:
@@ -2978,6 +2986,10 @@ Save_File (ET_File *ETFile, gboolean multiple_files,
if (!rc && !SF_HideMsgbox_Rename_File)
{
stop_loop = -1;
+
+ g_free (basename_cur_utf8);
+ g_free (basename_new_utf8);
+
return stop_loop;
}
@@ -2991,6 +3003,10 @@ Save_File (ET_File *ETFile, gboolean multiple_files,
case GTK_RESPONSE_CANCEL:
case GTK_RESPONSE_DELETE_EVENT:
stop_loop = -1;
+
+ g_free (basename_cur_utf8);
+ g_free (basename_new_utf8);
+
return stop_loop;
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]