]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/webkit_wrap.cpp
'[1219035] cleanup: miscellaneous' and minor source cleaning.
[wxWidgets.git] / wxPython / src / msw / webkit_wrap.cpp
index c8d8d0c061e083cc98f0ca952a0ee123ab19013c..722dd84ce477da1bc00943fa729b872ac9fd4582 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;
       }
     }