plugged some minor mem leaks

--Sven
This commit is contained in:
Sven Neumann 1999-07-15 08:15:17 +00:00
parent 6db3c6d801
commit e95394f073
3 changed files with 25 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);
}

View File

@ -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)