mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
systray: Fix VM leak on conn close
This commit is contained in:
parent
fbf1bc80b5
commit
42e4cc33bf
@ -282,7 +282,8 @@ class vmmSystray(vmmGObject):
|
||||
vm_menu = conn_item.get_submenu()
|
||||
vm_menu.remove(vm_menu_item)
|
||||
vm_menu_item.destroy()
|
||||
del(vm_mappings[connkey])
|
||||
vm_mappings.pop(connkey)
|
||||
self.vm_action_dict.pop(connkey)
|
||||
|
||||
if len(vm_menu.get_children()) == 0:
|
||||
placeholder = Gtk.MenuItem.new_with_label(
|
||||
|
Loading…
Reference in New Issue
Block a user