X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d55d6b3f45bf5a2261a4df06a6915c8fc711a500..bffe56c5d19df9926686722fc09ad096afb47633:/wxPython/src/image.i diff --git a/wxPython/src/image.i b/wxPython/src/image.i index ab9ccc65e9..84d1c7c5f0 100644 --- a/wxPython/src/image.i +++ b/wxPython/src/image.i @@ -191,6 +191,7 @@ public: dataPtr = (unsigned char*) malloc(len); memcpy(dataPtr, PyString_AsString(data), len); self->SetData(dataPtr); + // wxImage takes ownership of dataPtr... } }