mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
Don't warn about leaking halhelper
This commit is contained in:
parent
1ca94861ae
commit
f26c2160b5
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user