From 461d4b7dbd9bc8c651eb3cf28ffe8708dca16c5e Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sun, 1 Feb 2015 19:41:07 +0100 Subject: Fix crash: click the Remember-menu works again This commit fixes a subtle regression introduced by myself in f64727ca: WinClient wc = FbMenu::window()->winclient() creates a copy and this copy gets cleaned up at the end of the scope. What I really wanted was a reference. --- src/Remember.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Remember.cc b/src/Remember.cc index a950005..7163dec 100644 --- a/src/Remember.cc +++ b/src/Remember.cc @@ -310,7 +310,7 @@ public: Remember& r = Remember::instance(); r.checkReload(); if (FbMenu::window() != 0) { - WinClient wc = FbMenu::window()->winClient(); + WinClient& wc = FbMenu::window()->winClient(); if (isSelected()) { r.forgetAttrib(wc, m_attrib); } else { -- cgit v0.11.2