aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-02-01 18:41:07 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-02-01 18:41:07 (GMT)
commit461d4b7dbd9bc8c651eb3cf28ffe8708dca16c5e (patch)
tree8df2dff6d86bb0a4ea860d3ac806a3f8b2195764
parentc207226a3211c3010c8cb40692da7409b635e763 (diff)
downloadfluxbox-461d4b7dbd9bc8c651eb3cf28ffe8708dca16c5e.zip
fluxbox-461d4b7dbd9bc8c651eb3cf28ffe8708dca16c5e.tar.bz2
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.
-rw-r--r--src/Remember.cc2
1 files changed, 1 insertions, 1 deletions
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:
310 Remember& r = Remember::instance(); 310 Remember& r = Remember::instance();
311 r.checkReload(); 311 r.checkReload();
312 if (FbMenu::window() != 0) { 312 if (FbMenu::window() != 0) {
313 WinClient wc = FbMenu::window()->winClient(); 313 WinClient& wc = FbMenu::window()->winClient();
314 if (isSelected()) { 314 if (isSelected()) {
315 r.forgetAttrib(wc, m_attrib); 315 r.forgetAttrib(wc, m_attrib);
316 } else { 316 } else {