[easytag] Check that a ETFileInfo is valid before freeing
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Check that a ETFileInfo is valid before freeing
- Date: Sat, 12 Jan 2013 14:26:19 +0000 (UTC)
commit cc896641ccf039650548c7992031c93c31f798b7
Author: David King <amigadave amigadave com>
Date: Sat Jan 12 14:24:42 2013 +0000
Check that a ETFileInfo is valid before freeing
Avoids a critical warning when saving a file.
src/et_core.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/et_core.c b/src/et_core.c
index 9d95e88..99ce6a7 100644
--- a/src/et_core.c
+++ b/src/et_core.c
@@ -2052,7 +2052,10 @@ gboolean ET_Free_File_List_Item (ET_File *ETFile)
ET_Free_File_Tag_List (ETFile->FileTagListBak);
}
/* Frees infos of ETFileInfo */
- ET_Free_File_Info_Item (ETFile->ETFileInfo);
+ if (ETFile->ETFileInfo)
+ {
+ ET_Free_File_Info_Item (ETFile->ETFileInfo);
+ }
g_free(ETFile->ETFileExtension);
g_free(ETFile);
ETFile = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]