PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
type, otype);
}
- Py_DECREF(str);
+ if (str)
+ Py_DECREF(str);
return;
}
}
if (PyErr_Occurred()) SWIG_fail;
}
{
- resultobj = wxPyMake_wxSizer(result, 0);
+ resultobj = wxPyMake_wxObject(result, 0);
}
return resultobj;
fail: