patch-src_pyoggpage_c 452 B

1234567891011121314151617
  1. $OpenBSD: patch-src_pyoggpage_c,v 1.2 2011/05/31 09:30:43 dcoppa Exp $
  2. Fix memory allocation/deallocation for Python 2.5 and above
  3. (from Debian's patchset for python-ogg)
  4. --- src/pyoggpage.c.orig Mon Oct 7 01:04:57 2002
  5. +++ src/pyoggpage.c Tue Jun 1 15:38:26 2010
  6. @@ -75,7 +75,7 @@ static PyMethodDef py_ogg_page_methods[] = {
  7. static void
  8. py_ogg_page_dealloc(PyObject *self)
  9. {
  10. - PyMem_DEL(self);
  11. + PyObject_Del(self);
  12. }
  13. static PyObject*