Package: jack / 3.1.1+cvs20050801-31

61_pymem_del.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
The C API requires using the same memory API for a given memory block,
which will show up as a segfault, at least in python2.5.  See
http://bugs.debian.org/468972

Fix by Barry deFreese <bddebian@comcast.net> and Thomas Viehmann <tv@beamnet.de>

diff -Nur jack-3.1.1+cvs20050801/cursesmodule/jack_cursesmodule.c jack-3.1.1+cvs20050801.new/cursesmodule/jack_cursesmodule.c
--- jack-3.1.1+cvs20050801/cursesmodule/jack_cursesmodule.c	2006-02-05 09:09:07.000000000 -0500
+++ jack-3.1.1+cvs20050801.new/cursesmodule/jack_cursesmodule.c	2008-03-05 22:46:41.000000000 -0500
@@ -259,7 +259,7 @@
 {
 	PyCursesWindowObject *wo;
 
-	wo = PyObject_NEW(PyCursesWindowObject, &PyCursesWindow_Type);
+	wo = PyObject_New(PyCursesWindowObject, &PyCursesWindow_Type);
 	if (wo == NULL) return NULL;
 	wo->win = win;
 	return (PyObject *)wo;
@@ -270,7 +270,7 @@
 	PyCursesWindowObject *wo;
 {
   if (wo->win != stdscr) delwin(wo->win);
-  PyMem_DEL(wo);
+  PyObject_Del(wo);
 }
 
 /* Addch, Addstr, Addnstr */