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:
Phil Muldoon 2011-07-11 12:10:19 +00:00
parent 2843fdaab1
commit 754eadd19f
3 changed files with 57 additions and 13 deletions

View file

@ -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;
}