forked from Imagelibrary/binutils-gdb
2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
* python/py-inferior.c (infpy_dealloc): New function.
(inferior_to_inferior_object): Return a new object, or a
new reference to the existing object.
(find_thread_object): Cleanup references to inferior.
(delete_thread_object): Ditto.
* python/py-infthread.c (create_thread_object): Do not increment
inferior reference count.
This commit is contained in:
@@ -49,7 +49,6 @@ create_thread_object (struct thread_info *tp)
|
||||
|
||||
thread_obj->thread = tp;
|
||||
thread_obj->inf_obj = find_inferior_object (PIDGET (tp->ptid));
|
||||
Py_INCREF (thread_obj->inf_obj);
|
||||
|
||||
return thread_obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user