patch-src_pyoggstreamstate_c 477 B

1234567891011121314151617
  1. $OpenBSD: patch-src_pyoggstreamstate_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/pyoggstreamstate.c.orig Mon Oct 7 01:04:57 2002
  5. +++ src/pyoggstreamstate.c Tue Jun 1 15:38:26 2010
  6. @@ -77,7 +77,7 @@ static void
  7. py_ogg_stream_state_dealloc(PyObject *self)
  8. {
  9. ogg_stream_clear(PY_OGG_STREAM(self));
  10. - PyMem_DEL(self);
  11. + PyObject_Del(self);
  12. }
  13. static PyObject*