]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/calendar_wrap.cpp
Use the wx.ART_NORMAL_FILE icon
[wxWidgets.git] / wxPython / src / msw / calendar_wrap.cpp
index 14e1248f674fb81745a008ccdffa27c453608a64..0afdad34fc2bd66b042ea848b8d2eedcc04f6d6e 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;
       }
     }