]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/activex/activex_wrap.cpp
Patch from Ole André, call RegisterActiveObject() so the objects can
[wxWidgets.git] / wxPython / contrib / activex / activex_wrap.cpp
index 7a53c1a3fa87c5dd1e91c90e7f185a78b0d987b2..47062750ee8522f34428ac9d912a8da6fb45bd34 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;
       }
     }