openbsd-ports/audio/py-ogg/patches/patch-src_pyoggsyncstate_c

17 lines
471 B
Plaintext

$OpenBSD: patch-src_pyoggsyncstate_c,v 1.2 2011/05/31 09:30:43 dcoppa Exp $
Fix memory allocation/deallocation for Python 2.5 and above
(from Debian's patchset for python-ogg)
--- src/pyoggsyncstate.c.orig Mon Oct 7 01:04:57 2002
+++ src/pyoggsyncstate.c Tue Jun 1 15:38:26 2010
@@ -88,7 +88,7 @@ static void
py_ogg_sync_state_dealloc(PyObject *self)
{
ogg_sync_clear(PY_OGG_SYNC_STATE(self));
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject*