From 717ae864d258568e3dc94cd2d43b7b9d6375a222 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 2 Jan 2014 15:55:41 +0100 Subject: Switch QML profiler off when deleting QQmlProfilerService Like this we don't have to check for QQmlProfilerService::instance anymore in order to find out if we can use the profiler service. If instance == 0 then enabled == false. Furthermore if it was thread safe before it must still be thread safe like this. Task-number: QTBUG-35315 Change-Id: Ie5737e3586f2431afbf11423ba53fd13dd371feb Reviewed-by: Kai Koehne --- src/qml/debugger/qqmlprofilerservice.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qml/debugger') diff --git a/src/qml/debugger/qqmlprofilerservice.cpp b/src/qml/debugger/qqmlprofilerservice.cpp index af2aea21ae..8e169b1493 100644 --- a/src/qml/debugger/qqmlprofilerservice.cpp +++ b/src/qml/debugger/qqmlprofilerservice.cpp @@ -131,6 +131,7 @@ QQmlProfilerService::QQmlProfilerService() QQmlProfilerService::~QQmlProfilerService() { + enabled = false; instance = 0; } -- cgit v1.2.3