Don't warn about leaking halhelper

This commit is contained in:
Cole Robinson 2011-04-28 17:03:22 -04:00
parent 1ca94861ae
commit f26c2160b5
2 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,8 @@ def _safe_wrapper(func, *args):
class vmmGObject(gobject.GObject):
_leak_check = True
@staticmethod
def type_register(*args, **kwargs):
gobject.type_register(*args, **kwargs)
@ -59,7 +61,7 @@ class vmmGObject(gobject.GObject):
self.object_key = str(self)
# Config might not be available if we error early in startup
if self.config:
if self.config and self._leak_check:
self.config.add_object(self.object_key)
def cleanup(self):

View File

@ -80,6 +80,9 @@ def is_net_bonding_slave(name_ignore, sysfspath):
return False
class vmmHalHelper(vmmGObject):
# Can't find a way to properly cleanup dbus signals
_leak_check = False
def __init__(self):
vmmGObject.__init__(self)