diff options
Diffstat (limited to 'plugins/pyoida/py_log.c')
-rw-r--r-- | plugins/pyoida/py_log.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/pyoida/py_log.c b/plugins/pyoida/py_log.c index 706d626..ea43e5c 100644 --- a/plugins/pyoida/py_log.c +++ b/plugins/pyoida/py_log.c @@ -143,8 +143,11 @@ pylog_dealloc(pylog* self) //printf("dealloc\n"); +#if PY_VERSION_HEX < 0x03000000 self->ob_type->tp_free((PyObject*)self); - //Py_TYPE(self)->tp_free((PyObject*)self); +#else + Py_TYPE(self)->tp_free((PyObject*)self); +#endif //printf("dealloc::end\n"); |