]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpng.cpp
Forbid creation of wxStandardPaths object directly.
[wxWidgets.git] / src / common / imagpng.cpp
index 7fee6adbdb6b454465d8c1efd0226454b9c9ef25..81c411619bc63132a9e06635cee8096b5dd4ba7b 100644 (file)
@@ -567,7 +567,7 @@ wxPNGHandler::LoadFile(wxImage *image,
 
     for (i = 0; i < height; i++)
     {
-        if ((lines[i] = (unsigned char *)malloc( (size_t)(width * (sizeof(unsigned char) * 4)))) == NULL)
+        if ((lines[i] = (unsigned char *)malloc( (size_t)(width * 4))) == NULL)
             goto error;
     }