* only delete the popupmenu if we running the async version of BPopUpMenu

This fixes part 3 of task #1987, TaskManager was using the syncronous version of
  of BPopUpMenu wrapped in it's own class to run asyncronous. It did set SetAsyncAutoDestruct
  to true and afterwards calling delete an the already deleted menu.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26406 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Karsten Heimrich
2008-07-13 20:42:14 +00:00
parent 49a22456dd
commit 99939029b3
+1 -1
View File
@@ -337,7 +337,7 @@ BPopUpMenu::_thread_entry(void *arg)
delete_sem(data->lock); delete_sem(data->lock);
// Commit suicide if needed // Commit suicide if needed
if (menu->fAutoDestruct) { if (data->async && menu->fAutoDestruct) {
menu->fTrackThread = -1; menu->fTrackThread = -1;
delete menu; delete menu;
} }