Commit e95394f0 authored by Sven Neumann's avatar Sven Neumann
Browse files

plugged some minor mem leaks


--Sven
parent 6db3c6d8
Thu Jul 15 10:12:44 MEST 1999 Sven Neumann <sven@gimp.org>
* libgimp/gserialize.c
* app/main.c: plugged some mem leaks
1999-07-14 Tor Lillqvist <tml@iki.fi>
* app/makefile.cygwin
......
......@@ -542,9 +542,25 @@ test_gserialize (void)
g_return_if_fail (to->test_array[1] == ts->test_array[1]);
if (to->test_array[1] != ts->test_array[1])
g_message("int16array value 1 test failed(please email your system configuration to jaycox@earthlink.net): %d\n", to->test_array[1]);
/* really should free the memory... */
#ifndef NATIVE_WIN32
g_message("Passed serialization test\n");
#endif
}/*
67108864 */
/* free the memory */
g_free (ts->test_array);
g_free (ts);
g_free (to->test_array);
g_free (to->test_string);
g_free (to);
g_free_serial_description (test_struct_descript);
}
......@@ -119,6 +119,7 @@ void g_free_serial_description(GSerialDescription *d)
g_free(d->list->data);
d->list = g_slist_remove_link(d->list, d->list);
}
g_free (d);
}
static int g_serial_item_is_array(GSerialItem *item)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment