X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0..78bba745fc1ded9def5066792f6611960372af4c:/utils/wxPython/src/gtk/misc.cpp diff --git a/utils/wxPython/src/gtk/misc.cpp b/utils/wxPython/src/gtk/misc.cpp index 00f3d77f00..acc3edee24 100644 --- a/utils/wxPython/src/gtk/misc.cpp +++ b/utils/wxPython/src/gtk/misc.cpp @@ -780,8 +780,8 @@ static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args) { self = self; if(!PyArg_ParseTuple(args,"s:wxResourceCreateBitmap",&_arg0)) return NULL; - _result = (wxBitmap *)wxResourceCreateBitmap(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); + _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); + SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -795,8 +795,8 @@ static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args) { self = self; if(!PyArg_ParseTuple(args,"s:wxResourceCreateIcon",&_arg0)) return NULL; - _result = (wxIcon *)wxResourceCreateIcon(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); + _result = new wxIcon (wxResourceCreateIcon(_arg0)); + SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; }