summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/src/ctaskbar.cxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-12 21:12:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-12 21:12:56 +0000
commitcb492203382e21b52dce512d70efb487715392df (patch)
treeb94056bc44cb6f130c81619927e022ce5a5639ae /NxWidgets/nxwm/src/ctaskbar.cxx
parenta9990e4f81cbd4e9201e60e9123b3caeb5ecb35b (diff)
downloadpx4-nuttx-cb492203382e21b52dce512d70efb487715392df.tar.gz
px4-nuttx-cb492203382e21b52dce512d70efb487715392df.tar.bz2
px4-nuttx-cb492203382e21b52dce512d70efb487715392df.zip
NxWM: Fix double deletion of class
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4727 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/src/ctaskbar.cxx')
-rw-r--r--NxWidgets/nxwm/src/ctaskbar.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/NxWidgets/nxwm/src/ctaskbar.cxx b/NxWidgets/nxwm/src/ctaskbar.cxx
index 87fa34c3d..9558e47a8 100644
--- a/NxWidgets/nxwm/src/ctaskbar.cxx
+++ b/NxWidgets/nxwm/src/ctaskbar.cxx
@@ -393,8 +393,12 @@ bool CTaskbar::startApplication(IApplication *app, bool minimized)
if (!app->run())
{
+ // Call stopApplication on a failure to start. This will call
+ // app->stop() (which is probably not necesary for the application
+ // but it should be prepared/ to handle it). stopApplication()
+ // will also removed the icon image from the list and delete it.
+
stopApplication(app);
- image->disable();
return false;
}