Web Inspector: Disconnecting the front-end does not disable profiling.
https://bugs.webkit.org/show_bug.cgi?id=76213

Patch by Konrad Piascik <kpiascik@rim.com> on 2012-01-13
Reviewed by Pavel Feldman.

Not testable.

* inspector/InspectorProfilerAgent.cpp:
(WebCore::InspectorProfilerAgent::clearFrontend):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/inspector/InspectorProfilerAgent.cpp b/Source/WebCore/inspector/InspectorProfilerAgent.cpp
index 93d5242..fdd56a8 100644
--- a/Source/WebCore/inspector/InspectorProfilerAgent.cpp
+++ b/Source/WebCore/inspector/InspectorProfilerAgent.cpp
@@ -279,6 +279,8 @@
 {
     m_frontend = 0;
     stop();
+    ErrorString error;
+    disable(&error);
 }
 
 void InspectorProfilerAgent::restore()