Commit 293bdf49 authored by Jim Fulton's avatar Jim Fulton

Added logic to DECREF the type/class on del, which is needed by the new

ExtensionClass deletion protocol.

Added DECREF for object id, which is now an object.
parent c1f406fb
......@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file.
****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.29 1999/05/14 19:21:49 jim Exp $";
static char *what_string = "$Id: cPersistence.c,v 1.30 1999/06/10 19:55:29 jim Exp $";
#include <string.h>
#include "cPersistence.h"
......@@ -441,6 +441,8 @@ Per_dealloc(self)
if(idebug_log < 0) call_debug("del",self);
#endif
Py_XDECREF(self->jar);
Py_XDECREF(self->oid);
Py_DECREF(self->ob_type);
PyMem_DEL(self);
}
......@@ -699,7 +701,7 @@ void
initcPersistence()
{
PyObject *m, *d;
char *rev="$Revision: 1.29 $";
char *rev="$Revision: 1.30 $";
TimeStamp=PyString_FromString("TimeStamp");
if (! TimeStamp) return;
......
......@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file.
****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.29 1999/05/14 19:21:49 jim Exp $";
static char *what_string = "$Id: cPersistence.c,v 1.30 1999/06/10 19:55:29 jim Exp $";
#include <string.h>
#include "cPersistence.h"
......@@ -441,6 +441,8 @@ Per_dealloc(self)
if(idebug_log < 0) call_debug("del",self);
#endif
Py_XDECREF(self->jar);
Py_XDECREF(self->oid);
Py_DECREF(self->ob_type);
PyMem_DEL(self);
}
......@@ -699,7 +701,7 @@ void
initcPersistence()
{
PyObject *m, *d;
char *rev="$Revision: 1.29 $";
char *rev="$Revision: 1.30 $";
TimeStamp=PyString_FromString("TimeStamp");
if (! TimeStamp) return;
......
......@@ -82,7 +82,7 @@
attributions are listed in the accompanying credits file.
****************************************************************************/
static char *what_string = "$Id: cPersistence.c,v 1.29 1999/05/14 19:21:49 jim Exp $";
static char *what_string = "$Id: cPersistence.c,v 1.30 1999/06/10 19:55:29 jim Exp $";
#include <string.h>
#include "cPersistence.h"
......@@ -441,6 +441,8 @@ Per_dealloc(self)
if(idebug_log < 0) call_debug("del",self);
#endif
Py_XDECREF(self->jar);
Py_XDECREF(self->oid);
Py_DECREF(self->ob_type);
PyMem_DEL(self);
}
......@@ -699,7 +701,7 @@ void
initcPersistence()
{
PyObject *m, *d;
char *rev="$Revision: 1.29 $";
char *rev="$Revision: 1.30 $";
TimeStamp=PyString_FromString("TimeStamp");
if (! TimeStamp) return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment