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

17 lines
455 B
Plaintext

$OpenBSD: patch-src_pyoggpacket_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/pyoggpacket.c.orig Mon Oct 7 01:04:57 2002
+++ src/pyoggpacket.c Tue Jun 1 15:38:26 2010
@@ -60,7 +60,7 @@ py_ogg_packet_from_packet(ogg_packet *op)
static void
py_ogg_packet_dealloc(PyObject *self)
{
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject*