[easytag] Fix invalid reads when searching the file list



commit b1ae132a992f5fd4f0f06d9806b4ad8b4b13c272
Author: David King <amigadave amigadave com>
Date:   Sat Jul 13 22:59:43 2013 +0100

    Fix invalid reads when searching the file list
    
    Do not double-free the disc and track numbers.

 src/misc.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index ad5679d..41e473f 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -2515,9 +2515,6 @@ Add_Row_To_Search_Result_List (ET_File *ETFile, const gchar *string_to_search)
         SearchResultList_Text[SEARCH_RESULT_DISC_NUMBER] = NULL;
     }
 
-    g_free (disc_number);
-    g_free (disc_total);
-
     // Track
     track       = ((File_Tag *)ETFile->FileTag->data)->track;
     track_total = ((File_Tag *)ETFile->FileTag->data)->track_total;
@@ -2532,9 +2529,6 @@ Add_Row_To_Search_Result_List (ET_File *ETFile, const gchar *string_to_search)
         SearchResultList_Text[SEARCH_RESULT_TRACK] = NULL;
     }
 
-    g_free (track);
-    g_free (track_total);
-
 
     // Highlight the keywords in the result list
     // Don't display files to red if the searched string is '' (to display all files)


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