aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/log.c
diff options
context:
space:
mode:
authorGravatar Alex Bennee <alex@bennee.com>2010-07-14 16:03:56 +0100
committerGravatar Alex Bennee <alex@bennee.com>2010-07-14 16:03:56 +0100
commita3e202820fd12e3c368c9ed2446740e9b1d16fd7 (patch)
treecf5b62c17350cd172c301146c8cba4dae01a2110 /src/log.c
parent26b8e06374c71e42be86694f5d5c4ee920ae4d26 (diff)
EasyTag 2.1.5
Diffstat (limited to 'src/log.c')
-rwxr-xr-xsrc/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 1218a30..22870d8 100755
--- a/src/log.c
+++ b/src/log.c
@@ -277,7 +277,7 @@ void Log_Print (Log_Error_Type error_type, gchar const *format, ...)
Log_Data *LogData = g_malloc0(sizeof(Log_Data));
LogData->time = Log_Format_Date();
LogData->error_type = error_type;
- LogData->string = string;
+ LogData->string = g_strdup(string);
LogPrintTmpList = g_list_append(LogPrintTmpList,LogData);
//g_print("%s",string);
@@ -308,6 +308,7 @@ void Log_Print (Log_Error_Type error_type, gchar const *format, ...)
first_time = FALSE;
fclose(file);
}
+ g_free(string);
}