From: <ro...@us...> - 2006-07-04 23:15:49
|
Revision: 16428 Author: roast Date: 2006-07-04 16:15:43 -0700 (Tue, 04 Jul 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16428&view=rev Log Message: ----------- data->path freed only if it exists (it should anyway) Modified Paths: -------------- branches/soc-2006-file-loggers/src/log.c Modified: branches/soc-2006-file-loggers/src/log.c =================================================================== --- branches/soc-2006-file-loggers/src/log.c 2006-07-04 23:14:32 UTC (rev 16427) +++ branches/soc-2006-file-loggers/src/log.c 2006-07-04 23:15:43 UTC (rev 16428) @@ -1178,7 +1178,9 @@ } - g_free(data->path); + + if (data->path) + g_free(data->path); g_slice_free(GaimLogCommonLoggerData, data); } @@ -1359,8 +1361,10 @@ } } - g_free(data->path); + if (data->path) + g_free(data->path); + g_slice_free(GaimLogCommonLoggerData, data); } } @@ -1518,6 +1522,7 @@ gerror = NULL; } } + if(data->path) g_free(data->path); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |