From 07018e2eda01f79730441b00f680642ab71591ef Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 14 Apr 2011 11:26:53 -0400 Subject: [PATCH] engine: Slightly reorganize leak debugging --- src/virtManager/engine.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/virtManager/engine.py b/src/virtManager/engine.py index 134e7b859..e004f68d1 100644 --- a/src/virtManager/engine.py +++ b/src/virtManager/engine.py @@ -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)