[easytag] Fix memory leak in ET_Save_File_Tag_To_HD



commit b4c060d02732af1771c451be0aebaf42960ba1a0
Author: David King <amigadave amigadave com>
Date:   Mon Feb 24 17:43:18 2014 +0000

    Fix memory leak in ET_Save_File_Tag_To_HD

 src/et_core.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/et_core.c b/src/et_core.c
index 11c52cc..f12be6c 100644
--- a/src/et_core.c
+++ b/src/et_core.c
@@ -4005,9 +4005,9 @@ gboolean ET_Save_File_Tag_To_HD (ET_File *ETFile)
         // parent directory is automatically updated.
         if (UPDATE_PARENT_DIRECTORY_MODIFICATION_TIME)
         {
-            gchar *path = g_path_get_dirname(cur_filename);
-            utime(g_path_get_dirname(cur_filename),NULL);
-            g_free(path);
+            gchar *path = g_path_get_dirname (cur_filename);
+            utime (path, NULL);
+            g_free (path);
         }
 
         ET_Mark_File_Tag_As_Saved(ETFile);


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