]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/media_wrap.cpp
Compilation fix. I didn't add a #error since I figured this sample will be
[wxWidgets.git] / wxPython / src / gtk / media_wrap.cpp
index 3757687f012f585431e30b6c95cc596ae125642b..ff571e4e12cc87f1ac175c35cf3dc7da1dcccc83 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;
       }
     }