Commit 34aa30ca authored by Hirokazu Yamamoto's avatar Hirokazu Yamamoto

Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility

with Python2.7.
parent 6464d5ff
......@@ -5120,6 +5120,7 @@ create_comerror(void)
PyComError_Type.tp_base = (PyTypeObject*)PyExc_Exception;
if (PyType_Ready(&PyComError_Type) < 0)
return -1;
Py_INCREF(&PyComError_Type);
ComError = (PyObject*)&PyComError_Type;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment