Debugger: Fix crash on exit
authorKai Koehne <kai.koehne@nokia.com>
Mon, 31 Oct 2011 12:45:10 +0000 (13:45 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 16:02:48 +0000 (17:02 +0100)
It's not guaranteed that the static instance of QPerformanceTimer
still exists when the (also static) QDeclarativeDebugTrace instance
is deleted.

Change-Id: I24ca3154e592011af43714c2574f7243f7550109
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
src/declarative/debugger/qdeclarativedebugtrace.cpp

index 7d63849..bb092c1 100644 (file)
@@ -89,8 +89,6 @@ QDeclarativeDebugTrace::QDeclarativeDebugTrace()
 
 QDeclarativeDebugTrace::~QDeclarativeDebugTrace()
 {
-    // unregister the callback
-    QUnifiedTimer::instance()->registerProfilerCallback( 0 );
 }
 
 void QDeclarativeDebugTrace::addEngine(QDeclarativeEngine * /*engine*/)