[haiku-commits] r38361 - haiku/trunk/src/preferences/time

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 26 Aug 2010 03:07:14 +0200 (CEST)

Author: anevilyak
Date: 2010-08-26 03:07:14 +0200 (Thu, 26 Aug 2010)
New Revision: 38361
Changeset: http://dev.haiku-os.org/changeset/38361

Modified:
   haiku/trunk/src/preferences/time/ZoneView.cpp
Log:
If the tooltip exists, release its reference on exit instead of deleting it 
directly. Resolves a crash on exit if a tooltip was showing at the time.



Modified: haiku/trunk/src/preferences/time/ZoneView.cpp
===================================================================
--- haiku/trunk/src/preferences/time/ZoneView.cpp       2010-08-25 22:27:12 UTC 
(rev 38360)
+++ haiku/trunk/src/preferences/time/ZoneView.cpp       2010-08-26 01:07:14 UTC 
(rev 38361)
@@ -92,7 +92,8 @@
 
 TimeZoneView::~TimeZoneView()
 {
-       delete fToolTip;
+       if (fToolTip)
+               fToolTip->ReleaseReference();
 }
 
 


Other related posts:

  • » [haiku-commits] r38361 - haiku/trunk/src/preferences/time - anevilyak