group: disconnect pending reveal timeout in destructor to fix UAF

With reveal-delay set, handleMouseEnter arms a Glib::signal_timeout that
captures 'this'. sigc::connection's destructor does not remove the GLib
source, so a Group destroyed with a pending reveal timer would fire the
timeout on freed memory. Add a destructor that disconnects reveal_timeout_.
This commit is contained in:
Alex
2026-07-05 10:13:24 +02:00
parent 2f2479ca35
commit 892ab479ba
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class Group : public AModule {
public:
Group(const std::string&, const std::string&, const Json::Value&, bool);
~Group() override = default;
~Group() override;
auto update() -> void override;
operator Gtk::Widget&() override;