Changeset 1281

Show
Ignore:
Timestamp:
05/29/09 10:09:26 (9 months ago)
Author:
hobu
Message:

fix #181, incorrect reference counting in VisitData?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Rtree/trunk/rtree/wrapper.cc

    r1275 r1281  
    5050    void visitData(const IData & d) 
    5151    { 
    52         PyList_Append(ids, PyLong_FromLongLong(d.getIdentifier())); 
     52        PyObject* ob = PyLong_FromLongLong(d.getIdentifier());  
     53        PyList_Append(ids, ob);  
     54        Py_DECREF(ob);  
    5355    } 
    5456