From 6ecf136135c7071ecac3f7dfabfc015f51098bc4 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 12 Mar 2008 19:07:07 +0000 Subject: [PATCH] workaround for win32 segfault in gfx.c:asImage --- lib/devices/render.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) -- 1.7.10.4