mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06: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):
|
class vmmGObject(gobject.GObject):
|
||||||
|
|
||||||
|
_leak_check = True
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def type_register(*args, **kwargs):
|
def type_register(*args, **kwargs):
|
||||||
gobject.type_register(*args, **kwargs)
|
gobject.type_register(*args, **kwargs)
|
||||||
@ -59,7 +61,7 @@ class vmmGObject(gobject.GObject):
|
|||||||
self.object_key = str(self)
|
self.object_key = str(self)
|
||||||
|
|
||||||
# Config might not be available if we error early in startup
|
# 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)
|
self.config.add_object(self.object_key)
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
|
@ -80,6 +80,9 @@ def is_net_bonding_slave(name_ignore, sysfspath):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
class vmmHalHelper(vmmGObject):
|
class vmmHalHelper(vmmGObject):
|
||||||
|
# Can't find a way to properly cleanup dbus signals
|
||||||
|
_leak_check = False
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
vmmGObject.__init__(self)
|
vmmGObject.__init__(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user