- Decouple ModulesView::SaveState() from ModulesView::_CloseSaver() and thus ModulesView::DetachedFromWindow(). When called by BWindow destructor,

the needed derived member fSettings was already destroyed by the derived ScreenSaverWindow destructor. See backtrace in #2287
  Fixes #2287 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25761 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexandre Deckner 2008-06-02 17:08:42 +00:00
parent 30f7fc408b
commit b17ef798c7

View File

@ -351,6 +351,7 @@ ModulesView::MessageReceived(BMessage* message)
else
fSettings.SetModuleName(item->Text());
SaveState();
_CloseSaver();
_OpenSaver();
break;
@ -469,9 +470,7 @@ ModulesView::_CloseSaver()
fSaverRunner->Quit();
if (saver != NULL)
saver->StopConfig();
SaveState();
delete view;
delete fSettingsView;
delete fSaverRunner;