]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/calendar_wrap.cpp
wxCheckListBox doesn't require wxUSE_OWNER_DRAWN when using WXUNIVERSAL
[wxWidgets.git] / wxPython / src / mac / calendar_wrap.cpp
index 45d69abab5933a54504ea0905a4b5ec033c59685..2f1e3d24b9a7ed0feb47bae5acf3f8eacc93669c 100644 (file)
@@ -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;
       }
     }