patch-src_pyoggpackbuff_c 474 B

1234567891011121314151617
  1. $OpenBSD: patch-src_pyoggpackbuff_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/pyoggpackbuff.c.orig Mon Oct 7 01:04:57 2002
  5. +++ src/pyoggpackbuff.c Tue Jun 1 15:38:26 2010
  6. @@ -89,7 +89,7 @@ static PyMethodDef py_oggpack_buffer_methods[] = {
  7. static void
  8. py_oggpack_buffer_dealloc(PyObject *self)
  9. {
  10. - PyMem_DEL(self);
  11. + PyObject_Del(self);
  12. }
  13. static PyObject*