[haiku-commits] haiku: hrev45271 - src/apps/powerstatus

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 11 Feb 2013 18:57:04 +0100 (CET)

hrev45271 adds 1 changeset to branch 'master'
old head: eaa6b633db54e30ddda3c460ffc9cb5d7fa4fc90
new head: 19ec4667bc7ca7b40bba7ac54499df4a50c33405
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=19ec466+%5Eeaa6b63

----------------------------------------------------------------------------

19ec466: Lock about window before deleting it on destruction
  
  This fixes #9543

                                     [ John Scipione <jscipione@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45271
Commit:      19ec4667bc7ca7b40bba7ac54499df4a50c33405
URL:         http://cgit.haiku-os.org/haiku/commit/?id=19ec466
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Mon Feb 11 17:55:15 2013 UTC

Ticket:      https://dev.haiku-os.org/ticket/9543

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/apps/powerstatus/PowerStatusView.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/powerstatus/PowerStatusView.cpp 
b/src/apps/powerstatus/PowerStatusView.cpp
index 1fced11..d8c23ba 100644
--- a/src/apps/powerstatus/PowerStatusView.cpp
+++ b/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();
 }
 


Other related posts: