projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Compilation fix. I didn't add a #error since I figured this sample will be
[wxWidgets.git]
/
wxPython
/
src
/
mac
/
media_wrap.cpp
diff --git
a/wxPython/src/mac/media_wrap.cpp
b/wxPython/src/mac/media_wrap.cpp
index 3757687f012f585431e30b6c95cc596ae125642b..ff571e4e12cc87f1ac175c35cf3dc7da1dcccc83 100644
(file)
--- a/
wxPython/src/mac/media_wrap.cpp
+++ b/
wxPython/src/mac/media_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;
}
}