summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
263d494)
reference count decreased (and was therefore freed) even though it was
still used in a PyDict. Good riddance.
PyObject* tagmap_new()
{
PyObject* self = (PyObject*)PyObject_New(TagMapObject, &TagMapClass);
PyObject* tagmap_new()
{
PyObject* self = (PyObject*)PyObject_New(TagMapObject, &TagMapClass);
- mylog("+%08x(%d) tagmap_new", (int)self, self->ob_refcnt);
TagMapObject*tagmap = (TagMapObject*)self;
tagmap->obj2id = PyDict_New();
tagmap->id2obj = PyDict_New();
tagmap->objlist = PyList_New(0);
tagmap->currentID = 0; //IDs start at 1
TagMapObject*tagmap = (TagMapObject*)self;
tagmap->obj2id = PyDict_New();
tagmap->id2obj = PyDict_New();
tagmap->objlist = PyList_New(0);
tagmap->currentID = 0; //IDs start at 1
+ mylog("+%08x(%d) tagmap_new %08x(%d) %08x(%d), %08x(%d)", (int)self, self->ob_refcnt,
+ tagmap->obj2id, tagmap->obj2id->ob_refcnt ,
+ tagmap->id2obj, tagmap->id2obj->ob_refcnt ,
+ tagmap->objlist, tagmap->objlist->ob_refcnt);
if(id == 0)
return -1;
int _id = PyLong_AsLong(id);
if(id == 0)
return -1;
int _id = PyLong_AsLong(id);