From: Ryan C. Gordon Date: Wed, 24 Aug 2005 16:51:29 +0000 (+0000) Subject: Whoops, nasty malloc bug. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=f77ab80df9b206477192d6b78080cda056816161;p=lugaru.git Whoops, nasty malloc bug. --- diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 9d709db..4c83269 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -2679,10 +2679,6 @@ static bool load_png(const char *file_name, TGAImageRec &tex) if (!row_pointers) goto png_done; - retval = malloc(width * height * 4); - if (!retval) - goto png_done; - if (!hasalpha) { png_byte *dst = tex.data;