use our own destructors

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1354 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent b24387ebac
commit efd74d20c0

@ -61,11 +61,11 @@ static PyObject* IvrSipReply_new(PyTypeObject *type, PyObject *args, PyObject *k
return (PyObject *)self;
}
// static void
// IvrSipRequest_dealloc(IvrSipRequest* self)
// {
// self->ob_type->tp_free((PyObject*)self);
// }
static void
IvrSipReply_dealloc(IvrSipReply* self)
{
self->ob_type->tp_free((PyObject*)self);
}
#define def_IvrSipReply_GETTER(getter_name, attr) \
static PyObject* \
@ -123,7 +123,7 @@ PyTypeObject IvrSipReplyType = {
"ivr.IvrSipReply", /*tp_name*/
sizeof(IvrSipReply), /*tp_basicsize*/
0, /*tp_itemsize*/
0, /*tp_dealloc*/
(destructor)IvrSipReply_dealloc, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/

@ -62,11 +62,11 @@ static PyObject* IvrSipRequest_new(PyTypeObject *type, PyObject *args, PyObject
return (PyObject *)self;
}
// static void
// IvrSipRequest_dealloc(IvrSipRequest* self)
// {
// self->ob_type->tp_free((PyObject*)self);
// }
static void
IvrSipRequest_dealloc(IvrSipRequest* self)
{
self->ob_type->tp_free((PyObject*)self);
}
#define def_IvrSipRequest_GETTER(getter_name, attr) \
static PyObject* \
@ -155,7 +155,7 @@ PyTypeObject IvrSipRequestType = {
"ivr.IvrSipRequest", /*tp_name*/
sizeof(IvrSipRequest), /*tp_basicsize*/
0, /*tp_itemsize*/
0, /*tp_dealloc*/
(destructor)IvrSipRequest_dealloc, /*tp_dealloc*/
0, /*tp_print*/
0, /*tp_getattr*/
0, /*tp_setattr*/

Loading…
Cancel
Save