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

17 lines
477 B
Plaintext
Raw Normal View History

2011-05-30 11:16:35 -04:00
$OpenBSD: patch-src_pyoggsyncstate_c,v 1.1 2011/05/30 15:16:35 dcoppa Exp $
Fix memory allocation/deallocation for Python 2.5 and above
(from Debian's patchset for dev-python/pyogg)
--- 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*