mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed mem leak
This commit is contained in:
parent
5815ca79a7
commit
1e5b894d82
@ -3376,6 +3376,9 @@ class OutputPopover(Gtk.Popover):
|
||||
button.connect("clicked", self._on_button_clicked, output["outputid"])
|
||||
box.pack_start(button, False, False, 0)
|
||||
|
||||
#connect
|
||||
self.connect("closed", lambda *args: self.destroy())
|
||||
|
||||
# packing
|
||||
self.add(box)
|
||||
box.show_all()
|
||||
@ -3432,7 +3435,7 @@ class VolumeButton(Gtk.VolumeButton):
|
||||
self.set_sensitive(False)
|
||||
self._refresh(None, -1)
|
||||
if self._popover is not None:
|
||||
self._popover.destroy()
|
||||
self._popover.popdown()
|
||||
self._popover=None
|
||||
|
||||
def _on_icon_size_changed(self, *args):
|
||||
|
Loading…
Reference in New Issue
Block a user