From f77ab80df9b206477192d6b78080cda056816161 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 24 Aug 2005 16:51:29 +0000 Subject: [PATCH] Whoops, nasty malloc bug. --- Source/OpenGL_Windows.cpp | 4 ---- 1 file changed, 4 deletions(-) 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; -- 2.39.5