engine: Slightly reorganize leak debugging

This commit is contained in:
Cole Robinson 2011-04-14 11:26:53 -04:00
parent e799d101de
commit 07018e2eda

View File

@ -520,16 +520,14 @@ class vmmEngine(vmmGObject):
if debug_ref_leaks:
objs = self.config.get_objects()
if src.object_key in objs:
# Whatever UI initiates the app exit will always appear
# to leak
logging.debug("Exitting app from %s, skipping leak check" %
src.object_key)
objs.remove(src.object_key)
# Engine will always appear to leak
objs.remove(self.object_key)
if src.object_key in objs:
# UI that initiates the app exit will always appear to leak
objs.remove(src.object_key)
for name in objs:
logging.debug("Leaked %s" % name)