From: Matthias Kramm Date: Sat, 17 Jan 2009 01:24:53 +0000 (-0800) Subject: added parameter to dict_free_all X-Git-Tag: release-0-9-0~257 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=9d42dd912d2cb790518837bd2a6ce7097a8e6fa0;p=swftools.git added parameter to dict_free_all --- diff --git a/src/swfc.c b/src/swfc.c index 19a53c7..2cc9887 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -340,22 +340,22 @@ static void free_outline(void* o) static void freeDictionaries() { - dict_free_all(&instances, free_instance); - dict_free_all(&characters, free); - dict_free_all(&images, free); - dict_free_all(&textures, free); - dict_free_all(&outlines, free_outline); - dict_free_all(&gradients, free_gradient); - dict_free_all(&filters, free); - dict_free_all(&fonts, free_font); - dict_free_all(&sounds, free); - dict_free_all(&interpolations, free); + dict_free_all(&instances, 1, free_instance); + dict_free_all(&characters, 1, free); + dict_free_all(&images, 1, free); + dict_free_all(&textures, 1, free); + dict_free_all(&outlines, 1, free_outline); + dict_free_all(&gradients, 1, free_gradient); + dict_free_all(&filters, 1, free); + dict_free_all(&fonts, 1, free_font); + dict_free_all(&sounds, 1, free); + dict_free_all(&interpolations, 1, free); cleanUp = 0; } static void freeFontDictionary() { - dict_free_all(&fonts, free_font); + dict_free_all(&fonts, 1, free_font); } static void incrementid() @@ -993,7 +993,7 @@ static void s_endSprite() syntaxerror("internal error(7)"); /* TODO: before clearing, prepend "." to names and copy into old instances dict */ - dict_free_all(&instances, free_instance); + dict_free_all(&instances, 1, free_instance); currentframe = stack[stackpos].oldframe; currentrect = stack[stackpos].oldrect;