]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/html_wrap.cpp
Use the wx.ART_NORMAL_FILE icon
[wxWidgets.git] / wxPython / src / msw / html_wrap.cpp
index 68e13af46e235a19cd89ea39a1bf0129d8e5fa90..11eb115304fa19f577aa53a7ee57b89928999c82 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;
       }
     }