]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/html_wrap.cpp
Get/SetTitle only for wxTopLevelWindow (wxMGL part).
[wxWidgets.git] / wxPython / src / mac / html_wrap.cpp
index d561a80f882a065f3d04ed2a1540e4cf6b2d5c05..0ddc1296173ba2863ccf1db1c1ac7f96ea3b6098 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;
       }
     }