Fix memory leak.
This commit is contained in:
parent
18625ec515
commit
8c5be8b468
5
viewer.c
5
viewer.c
|
@ -668,9 +668,9 @@ create_list_window(void)
|
||||||
printf("buf(%d): %s\n", j, buf);
|
printf("buf(%d): %s\n", j, buf);
|
||||||
#endif
|
#endif
|
||||||
if (j < 3)
|
if (j < 3)
|
||||||
continue;
|
goto next;
|
||||||
if (strcmp(event, "KeyDown"))
|
if (strcmp(event, "KeyDown"))
|
||||||
continue;
|
goto next;
|
||||||
|
|
||||||
params = buf + len;
|
params = buf + len;
|
||||||
#if DEBUG > 0
|
#if DEBUG > 0
|
||||||
|
@ -694,6 +694,7 @@ create_list_window(void)
|
||||||
gtk_clist_append(GTK_CLIST(clist), (char **)stuff);
|
gtk_clist_append(GTK_CLIST(clist), (char **)stuff);
|
||||||
real_rows++;
|
real_rows++;
|
||||||
|
|
||||||
|
next:
|
||||||
g_free(buf);
|
g_free(buf);
|
||||||
}
|
}
|
||||||
g_free(msg);
|
g_free(msg);
|
||||||
|
|
Loading…
Reference in New Issue