From 1e5b894d8234fcf3a66d3b18a39ef688372f3c0c Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Sun, 25 Apr 2021 19:00:54 +0200 Subject: [PATCH] fixed mem leak --- bin/mpdevil | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/mpdevil b/bin/mpdevil index 9a70b00..b19b62d 100755 --- a/bin/mpdevil +++ b/bin/mpdevil @@ -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):