From 7b7ef5bf8882efe5d92b33fb308bdbba3e7aa00f Mon Sep 17 00:00:00 2001 From: Alex Marshall Date: Tue, 19 May 2009 23:41:18 -0700 Subject: Should be last fix for RGBA8 --- zetsubou/tpl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zetsubou/tpl.c') diff --git a/zetsubou/tpl.c b/zetsubou/tpl.c index 535e0ff..c6106c7 100644 --- a/zetsubou/tpl.c +++ b/zetsubou/tpl.c @@ -95,6 +95,8 @@ int TPL_ConvertRGBA8ToBitMap(u8* tplbuf, u32 tplsize, u32 tplpoint, u8** bitmapd u32 goodheight = height; u32 x, y; u32 x1, y1; + if(*bitmapdata != NULL) + free(*bitmapdata); *bitmapdata = (u8*)calloc(width * height, 4); if(*bitmapdata == NULL) return -1; -- cgit v1.3.1