Fix a memory leak. Based on input by Daniel Marjamäki. Thanks for the catch.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5208 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Frank Lanitz 2010-09-09 00:42:19 +00:00
parent 8707a1b1eb
commit 7313c3cbbf
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2010-09-09 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/build.c:
Fix a memory leak. Based on input by Daniel Marjamäki. Thanks for the
catch.
2010-09-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2010-09-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/ui_utils.h, src/msgwindow.c, src/msgwindow.h, src/main.c: * src/ui_utils.h, src/msgwindow.c, src/msgwindow.h, src/main.c:

View File

@ -996,7 +996,11 @@ static void process_build_output_line(const gchar *str, gint color)
g_strchomp(msg); g_strchomp(msg);
if (! NZV(msg)) if (! NZV(msg))
{
if (msg != NULL)
g_free(msg);
return; return;
}
if (build_parse_make_dir(msg, &tmp)) if (build_parse_make_dir(msg, &tmp))
{ {