]> Dogcows Code - chaz/openbox/blobdiff - otk_c/screeninfo.c
a color cache to be proud of!
[chaz/openbox] / otk_c / screeninfo.c
index 0153d7f74d5177c7d32750286717914d5534ec6f..3d253d1b81cbfcd22716b96ce415fa68ddcef3c6 100644 (file)
@@ -85,7 +85,7 @@ PyObject *OtkScreenInfo_New(int num)
   if (dstr2) {
     PyObject *str;
     
-    PyString_Resize(self->display_string, dstr2 - dstr);
+    _PyString_Resize(&self->display_string, dstr2 - dstr);
     str = PyString_FromFormat(".%d", self->screen);
     PyString_Concat(&self->display_string, str);
   }
@@ -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);
 }
This page took 0.023549 seconds and 4 git commands to generate.