diff options
Diffstat (limited to 'otk_c/screeninfo.c')
| -rw-r--r-- | otk_c/screeninfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/otk_c/screeninfo.c b/otk_c/screeninfo.c index 0153d7f7..fb0de498 100644 --- a/otk_c/screeninfo.c +++ b/otk_c/screeninfo.c @@ -162,10 +162,10 @@ static PyMethodDef get_methods[] = { static void otkscreeninfo_dealloc(PyObject* self) { - PyObject_Del(((OtkScreenInfo*) self)->display_string); - PyObject_Del(((OtkScreenInfo*) self)->rect); + Py_DECREF(((OtkScreenInfo*) self)->display_string); + Py_DECREF(((OtkScreenInfo*) self)->rect); #ifdef XINERAMA - PyObject_Del(((OtkScreenInfo*) self)->xinerama_areas); + Py_DECREF(((OtkScreenInfo*) self)->xinerama_areas); #endif PyObject_Del(self); } |
