diff --git a/ChangeLog b/ChangeLog index fbfdb625dd..4fefc794ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 15 10:12:44 MEST 1999 Sven Neumann + + * libgimp/gserialize.c + * app/main.c: plugged some mem leaks + 1999-07-14 Tor Lillqvist * app/makefile.cygwin diff --git a/app/main.c b/app/main.c index f0a2976845..675dcbf5be 100644 --- a/app/main.c +++ b/app/main.c @@ -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); +} + + + + + + + + + diff --git a/libgimp/gserialize.c b/libgimp/gserialize.c index ee677da40f..3c7f0b8601 100644 --- a/libgimp/gserialize.c +++ b/libgimp/gserialize.c @@ -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)