From 9e04189c586c7fc98097b0a42222d99621131c58 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 23 Apr 2013 12:04:06 -0500 Subject: Fix sporadic Kicker crash in popup menu handler This resolves Bug 1425 --- kicker/taskbar/taskcontainer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kicker') 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; } -- cgit v1.2.1