summaryrefslogtreecommitdiffstats
path: root/kicker/taskbar
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/taskbar')
-rw-r--r--kicker/taskbar/taskcontainer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kicker/taskbar/taskcontainer.cpp b/kicker/taskbar/taskcontainer.cpp
index d29321382..fa3b560a8 100644
--- a/kicker/taskbar/taskcontainer.cpp
+++ b/kicker/taskbar/taskcontainer.cpp
@@ -1258,7 +1258,9 @@ void TaskContainer::popupMenu(int action)
m_menu->installEventFilter( this );
m_menu->exec( pos );
- delete m_menu;
+ if (m_menu) {
+ delete m_menu;
+ }
m_menu = 0;
}