]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/media_wrap.cpp
tweaked build ordering a bit
[wxWidgets.git] / wxPython / src / msw / media_wrap.cpp
index 747ec17e34576503fcf6c3c690c2e3713801c5d1..9508a24630aa84a2103e72f5de39c5a7d51bc3e6 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;
       }
     }