I think this fixes

[ #510644 ] test_curses segfaults

If we use the *object* *allocator*, we should use the *object* *deallocator*,
not the *raw memory* deallocator (confused yet?).

I think this was what caused segfaults when pymalloc was enabled.

Even if it wasn't the cause, it's still wrong.

2.2.1 candidate.
This commit is contained in:
Michael W. Hudson 2002-01-30 15:39:28 +00:00
parent c7dd34b5e7
commit 67fb0c3705
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ static void
PyCursesWindow_Dealloc(PyCursesWindowObject *wo)
{
if (wo->win != stdscr) delwin(wo->win);
PyMem_DEL(wo);
PyObject_DEL(wo);
}
/* Addch, Addstr, Addnstr */