diff options
author | Alex Bennee <alex@bennee.com> | 2010-07-14 16:03:56 +0100 |
---|---|---|
committer | Alex Bennee <alex@bennee.com> | 2010-07-14 16:03:56 +0100 |
commit | a3e202820fd12e3c368c9ed2446740e9b1d16fd7 (patch) | |
tree | cf5b62c17350cd172c301146c8cba4dae01a2110 /src/log.c | |
parent | 26b8e06374c71e42be86694f5d5c4ee920ae4d26 (diff) |
EasyTag 2.1.5
Diffstat (limited to 'src/log.c')
-rwxr-xr-x | src/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |