quiet zombie python class warning. bug remains but its not useful to print out so many errors when this wont be fixed for a while.

This commit is contained in:
2011-01-09 11:54:12 +00:00
parent d31ebbe666
commit 02aab4977f

View File

@@ -5466,12 +5466,13 @@ static void bpy_class_free(void *pyob_ptr)
if(PyErr_Occurred())
PyErr_Clear();
#if 0 /* needs further investigation, too annoying so quiet for now */
if(G.f&G_DEBUG) {
if(self->ob_refcnt > 1) {
PyC_ObSpit("zombie class - ref should be 1", self);
}
}
#endif
Py_DECREF((PyObject *)pyob_ptr);
PyGILState_Release(gilstate);