Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
13c44d70 by wurstsalat at 2022-02-03T15:22:01+01:00
StartChat: Fix leak
- - - - -
1 changed file:
- gajim/gtk/start_chat.py
Changes:
=====================================
gajim/gtk/start_chat.py
=====================================
@@ -134,7 +134,7 @@ def __init__(self) -> None:
self._ui.filter_bar_revealer.add(self._chat_filter)
self.connect('key-press-event', self._on_key_press)
- self.connect('destroy', self._destroy)
+ self.connect('destroy', self._on_destroy)
self.select_first_row()
self._ui.connect_signals(self)
@@ -738,11 +738,14 @@ def _process_search_result(self,
for item in result.items:
self._global_search_listbox.add(ResultRow(item))
- def _destroy(self, *args: Any) -> None:
+ def _on_destroy(self, *args: Any) -> None:
+ self._ui.listbox.set_filter_func(None)
+ self._ui.listbox.destroy()
if self._source_id is not None:
GLib.source_remove(self._source_id)
self._destroyed = True
app.cancel_tasks(self)
+ app.check_finalize(self)
class ContactRow(Gtk.ListBoxRow):
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/13c44d703709de73b1908b7b25cf169948ce57ed
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/13c44d703709de73b1908b7b25cf169948ce57ed
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits