workaround for win32 segfault in gfx.c:asImage
authorkramm <kramm>
Wed, 12 Mar 2008 19:07:07 +0000 (19:07 +0000)
committerkramm <kramm>
Wed, 12 Mar 2008 19:07:07 +0000 (19:07 +0000)
lib/devices/render.c

index 88e33ae..d9cca51 100644 (file)
@@ -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)