From: kramm Date: Wed, 12 Mar 2008 19:07:07 +0000 (+0000) Subject: workaround for win32 segfault in gfx.c:asImage X-Git-Tag: buttons-working~425 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=6ecf136135c7071ecac3f7dfabfc015f51098bc4;p=swftools.git workaround for win32 segfault in gfx.c:asImage --- diff --git a/lib/devices/render.c b/lib/devices/render.c index 88e33ae..d9cca51 100644 --- a/lib/devices/render.c +++ b/lib/devices/render.c @@ -752,10 +752,15 @@ void render_result_destroy(gfxresult_t*r) while(i) { internal_result_t*next = i->next; free(i->img.data);i->img.data = 0; - free(i); + + /* FIXME memleak + the following rfx_free causes a segfault on WIN32 machines, + if executed */ + //rfx_free(i); + i = next; } - free(r); + rfx_free(r); } gfxresult_t* render_finish(struct _gfxdevice*dev)