systray: Fix VM leak on conn close

This commit is contained in:
Cole Robinson 2018-03-12 18:18:09 -04:00
parent fbf1bc80b5
commit 42e4cc33bf

View File

@ -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(