]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/image.i
Beginning of bitmap updates
[wxWidgets.git] / wxPython / src / image.i
index fd8ba4d8b25c417645571257d447c77ebea43354..f3155144f1411d9583ca159ea4c2c33d5782de4b 100644 (file)
@@ -139,7 +139,7 @@ public:
             }
 
             size_t len = self->GetWidth() * self->GetHeight() * 3;
-            dataPtr = new unsigned char[len];
+            dataPtr = (unsigned char*) malloc(len);
             memcpy(dataPtr, PyString_AsString(data), len);
             self->SetData(dataPtr);
         }