fix crashes when deleting stamps or getting an error when saving

This commit is contained in:
jacob1 2012-11-15 20:00:55 -05:00
parent 785fbcefdf
commit 38a18af2c5
2 changed files with 3 additions and 3 deletions

View File

@ -174,8 +174,8 @@ void ServerSaveActivity::Save()
virtual void ConfirmCallback(ConfirmPrompt::DialogueResult result) {
if (result == ConfirmPrompt::ResultOkay)
{
a->saveUpload();
a->Exit();
a->saveUpload();
}
}
virtual ~PublishConfirmation() { }
@ -189,8 +189,8 @@ void ServerSaveActivity::Save()
}
else
{
saveUpload();
Exit();
saveUpload();
}
}
else

View File

@ -60,7 +60,7 @@ void TaskWindow::Exit()
if(ui::Engine::Ref().GetWindow()==this)
{
ui::Engine::Ref().CloseWindow();
delete this;
SelfDestruct();
}
}