Fix memory leak.

This commit is contained in:
Kim Woelders 2013-03-17 15:05:39 +01:00
parent 18625ec515
commit 8c5be8b468
1 changed files with 3 additions and 2 deletions

View File

@ -668,9 +668,9 @@ create_list_window(void)
printf("buf(%d): %s\n", j, buf);
#endif
if (j < 3)
continue;
goto next;
if (strcmp(event, "KeyDown"))
continue;
goto next;
params = buf + len;
#if DEBUG > 0
@ -694,6 +694,7 @@ create_list_window(void)
gtk_clist_append(GTK_CLIST(clist), (char **)stuff);
real_rows++;
next:
g_free(buf);
}
g_free(msg);