Also lock fAboutWindow before Quit()ting in other apps
This commit is contained in:
@@ -602,7 +602,7 @@ ActivityView::~ActivityView()
|
|||||||
delete fSystemInfoHandler;
|
delete fSystemInfoHandler;
|
||||||
|
|
||||||
// replicant deleted, destroy the about window
|
// replicant deleted, destroy the about window
|
||||||
if (fAboutWindow != NULL)
|
if (fAboutWindow != NULL && fAboutWindow->Lock())
|
||||||
fAboutWindow->Quit();
|
fAboutWindow->Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ CalcView::~CalcView()
|
|||||||
free(fKeypadDescription);
|
free(fKeypadDescription);
|
||||||
|
|
||||||
// replicant deleted, destroy the about window
|
// replicant deleted, destroy the about window
|
||||||
if (fAboutWindow != NULL)
|
if (fAboutWindow != NULL && fAboutWindow->Lock())
|
||||||
fAboutWindow->Quit();
|
fAboutWindow->Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ NetworkStatusView::NetworkStatusView(BMessage* archive)
|
|||||||
|
|
||||||
NetworkStatusView::~NetworkStatusView()
|
NetworkStatusView::~NetworkStatusView()
|
||||||
{
|
{
|
||||||
if (fAboutWindow != NULL)
|
if (fAboutWindow != NULL && fAboutWindow->Lock())
|
||||||
fAboutWindow->Quit();
|
fAboutWindow->Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ ProcessController::~ProcessController()
|
|||||||
gPCView = NULL;
|
gPCView = NULL;
|
||||||
|
|
||||||
// replicant deleted, destroy the about window
|
// replicant deleted, destroy the about window
|
||||||
if (fAboutWindow != NULL)
|
if (fAboutWindow != NULL && fAboutWindow->Lock())
|
||||||
fAboutWindow->Quit();
|
fAboutWindow->Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ WorkspacesView::WorkspacesView(BMessage* archive)
|
|||||||
|
|
||||||
WorkspacesView::~WorkspacesView()
|
WorkspacesView::~WorkspacesView()
|
||||||
{
|
{
|
||||||
if (fAboutWindow != NULL)
|
if (fAboutWindow != NULL && fAboutWindow->Lock())
|
||||||
fAboutWindow->Quit();
|
fAboutWindow->Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user