Permalink
Browse files

Lock about window before deleting it on destruction

This fixes #9543
  • Loading branch information...
1 parent eaa6b63 commit 19ec4667bc7ca7b40bba7ac54499df4a50c33405 @jscipione jscipione committed Feb 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/apps/powerstatus/PowerStatusView.cpp
@@ -77,7 +77,7 @@ PowerStatusView::PowerStatusView(BMessage* archive)
PowerStatusView::~PowerStatusView()
{
- if (fAboutWindow != NULL)
+ if (fAboutWindow != NULL && fAboutWindow->Lock())
fAboutWindow->Quit();
}

0 comments on commit 19ec466

Please sign in to comment.