From 722f0d8b1a276f2f069fc090db2365ae2659fac9 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 4 Oct 2006 16:39:18 +0200 Subject: * python/generic.h: - use PyObject_DEL() instead of PyMem_DEL() --- python/generic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/generic.h b/python/generic.h index b47ed1a2..a1b662bb 100644 --- a/python/generic.h +++ b/python/generic.h @@ -113,7 +113,7 @@ template void CppDealloc(PyObject *Obj) { GetCpp(Obj).~T(); - PyMem_DEL(Obj); + PyObject_DEL(Obj); } template @@ -123,7 +123,7 @@ void CppOwnedDealloc(PyObject *iObj) Obj->Object.~T(); if (Obj->Owner != 0) Py_DECREF(Obj->Owner); - PyMem_DEL(Obj); + PyObject_DEL(Obj); } inline PyObject *CppPyString(std::string Str) -- cgit v1.2.3