diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Screen.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 49b631d..96ede24 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -841,7 +841,8 @@ void BScreen::propertyNotify(Atom atom) { | |||
841 | &ret_bytes_after, (unsigned char **)&str); | 841 | &ret_bytes_after, (unsigned char **)&str); |
842 | } | 842 | } |
843 | 843 | ||
844 | FbTk::RefCount<FbTk::Command<void> > cmd(FbTk::CommandParser<void>::instance().parse(str, false)); | 844 | static std::auto_ptr<FbTk::Command<void> > cmd(0); |
845 | cmd.reset(FbTk::CommandParser<void>::instance().parse(str, false)); | ||
845 | if (cmd.get()) | 846 | if (cmd.get()) |
846 | cmd->execute(); | 847 | cmd->execute(); |
847 | XFree(str); | 848 | XFree(str); |