Skip to content

Commit

Permalink
Lock about window before deleting it on destruction
Browse files Browse the repository at this point in the history
This fixes #9543
  • Loading branch information
jscipione committed Feb 11, 2013
1 parent eaa6b63 commit 19ec466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/powerstatus/PowerStatusView.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ PowerStatusView::PowerStatusView(BMessage* archive)


PowerStatusView::~PowerStatusView() PowerStatusView::~PowerStatusView()
{ {
if (fAboutWindow != NULL) if (fAboutWindow != NULL && fAboutWindow->Lock())
fAboutWindow->Quit(); fAboutWindow->Quit();
} }


Expand Down

0 comments on commit 19ec466

Please sign in to comment.