Author: tack
Date: Tue Jan 16 21:20:20 2007
New Revision: 2414
Modified:
trunk/base/src/extensions/shmmodule.c
trunk/imlib2/src/font.c
trunk/imlib2/src/image.c
Log:
Use PyObject_DEL instead of PyMem_DEL which no longer works as of Python 2.5;
fix provided by Pierre Ossman.
Modified: trunk/base/src/extensions/shmmodule.c
==============================================================================
--- trunk/base/src/extensions/shmmodule.c (original)
+++ trunk/base/src/extensions/shmmodule.c Tue Jan 16 21:20:20 2007
@@ -529,7 +529,7 @@
shmdt(self->addr);
}
*/
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
static PyObject *
@@ -930,7 +930,7 @@
/* del sem_dict[key], ignore if it fails */
if (PyDict_DelItem(sem_dict, PyInt_FromLong(self->semid)) == -1)
PyErr_Clear();
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
static PyObject *
Modified: trunk/imlib2/src/font.c
==============================================================================
--- trunk/imlib2/src/font.c (original)
+++ trunk/imlib2/src/font.c Tue Jan 16 21:20:20 2007
@@ -66,7 +66,7 @@
{
imlib_context_set_font(self->font);
imlib_free_font();
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
Modified: trunk/imlib2/src/image.c
==============================================================================
--- trunk/imlib2/src/image.c (original)
+++ trunk/imlib2/src/image.c Tue Jan 16 21:20:20 2007
@@ -152,7 +152,7 @@
if (self->buffer) {
Py_DECREF(self->buffer);
}
- PyMem_DEL(self);
+ PyObject_DEL(self);
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog