From a3e202820fd12e3c368c9ed2446740e9b1d16fd7 Mon Sep 17 00:00:00 2001 From: Alex Bennee Date: Wed, 14 Jul 2010 16:03:56 +0100 Subject: EasyTag 2.1.5 --- src/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/log.c') 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); } -- cgit v1.2.3