From 754eadd19fceada3873d39edc914c0b63578c000 Mon Sep 17 00:00:00 2001 From: Phil Muldoon Date: Mon, 11 Jul 2011 12:10:19 +0000 Subject: 2011-07-11 Phil Muldoon * 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. --- gdb/python/py-infthread.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/python/py-infthread.c') diff --git a/gdb/python/py-infthread.c b/gdb/python/py-infthread.c index b37c53c..cb714c7 100644 --- a/gdb/python/py-infthread.c +++ b/gdb/python/py-infthread.c @@ -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; } -- cgit v1.1