Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > main-release-src > by-pkgid > fedce91cdf0cf8eaa0c831ae9a57e7a4 > files > 2

python-fam-1.1.1-6mdv2010.1.src.rpm


--- python-fam-1.1.1.orig/_fam.c
+++ python-fam-1.1.1/_fam.c
@@ -112,7 +112,7 @@
   fprintf(stderr, "_fam: deleting connection object.\n");
 #endif
   _fam_close(self, NULL);
-  PyMem_DEL(self);
+  PyObject_Del(self);
 }
 
 static PyTypeObject _fam_connection_type = {
@@ -215,7 +215,7 @@
   fprintf(stderr, "_fam: deleting request object.\n");
 #endif
   _fam_cancel_monitor(self, NULL);
-  PyMem_DEL(self);
+  PyObject_Del(self);
 }
 
 static PyTypeObject _fam_request_type = {
@@ -357,7 +357,7 @@
       fe_obj->fc_obj = NULL;
     }
     Py_XDECREF(fe_obj->attr);
-    PyMem_DEL(fe_obj);
+    PyObject_Del(fe_obj);
   }
 }
 
@@ -435,7 +435,7 @@
 
   int rc;
   
-  _fam_connection_object *fc_obj = PyObject_NEW(_fam_connection_object, &_fam_connection_type);
+  _fam_connection_object *fc_obj = PyObject_New(_fam_connection_object, &_fam_connection_type);
   if (!fc_obj)
     return NULL;
 
@@ -498,7 +498,7 @@
     if (!PyArg_ParseTuple(args, "sO", &filename, &userData))
       return NULL;
 
-    fr_obj = PyObject_NEW(_fam_request_object, &_fam_request_type);
+    fr_obj = PyObject_New(_fam_request_object, &_fam_request_type);
     if (!fr_obj)
       return NULL;
 
@@ -545,7 +545,7 @@
     if (!PyArg_ParseTuple(args, "sO", &filename, &userData))
       return NULL;
 
-    fr_obj = PyObject_NEW(_fam_request_object, &_fam_request_type);
+    fr_obj = PyObject_New(_fam_request_object, &_fam_request_type);
     if (!fr_obj)
       return NULL;
 
@@ -647,7 +647,7 @@
 
   if (fc_obj->fc) {
 
-    fe_obj = PyObject_NEW(_fam_event_object, &_fam_event_type);
+    fe_obj = PyObject_New(_fam_event_object, &_fam_event_type);
     if (!fe_obj)
       return NULL;