projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cleanup
[wxWidgets.git]
/
wxPython
/
contrib
/
activex
/
activex_wrap.cpp
diff --git
a/wxPython/contrib/activex/activex_wrap.cpp
b/wxPython/contrib/activex/activex_wrap.cpp
index 7a53c1a3fa87c5dd1e91c90e7f185a78b0d987b2..47062750ee8522f34428ac9d912a8da6fb45bd34 100644
(file)
--- a/
wxPython/contrib/activex/activex_wrap.cpp
+++ b/
wxPython/contrib/activex/activex_wrap.cpp
@@
-1037,7
+1037,8
@@
SWIG_Python_TypeError(const char *type, PyObject *obj)
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
type, otype);
}
- Py_DECREF(str);
+ if (str)
+ Py_DECREF(str);
return;
}
}