PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
type, otype);
}
- Py_DECREF(str);
+ if (str)
+ Py_DECREF(str);
return;
}
}
PyErr_Clear(); // clear the failure of the wxPyConvert above
arg1 = wxPyCBInputStream_create(obj0, false);
if (arg1 == NULL) {
- PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
+ PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
SWIG_fail;
}
created1 = true;
}
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXmlDocument, 1);
{
- if (created1)
- delete arg1;
+ if (created1) delete arg1;
}
{
if (temp2)
return resultobj;
fail:
{
- if (created1)
- delete arg1;
+ if (created1) delete arg1;
}
{
if (temp2)
PyErr_Clear(); // clear the failure of the wxPyConvert above
arg2 = wxPyCBInputStream_create(obj1, false);
if (arg2 == NULL) {
- PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
+ PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
SWIG_fail;
}
created2 = true;
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
}
{
- if (created2)
- delete arg2;
+ if (created2) delete arg2;
}
{
if (temp3)
return resultobj;
fail:
{
- if (created2)
- delete arg2;
+ if (created2) delete arg2;
}
{
if (temp3)