Web Replay: premature release() of PassRefPtr in InspectorReplayAgent
authorbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Mar 2014 23:19:17 +0000 (23:19 +0000)
committerbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Mar 2014 23:19:17 +0000 (23:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=129827

Reviewed by Timothy Hatcher.

* inspector/InspectorReplayAgent.cpp:
(WebCore::InspectorReplayAgent::didCreateFrontendAndBackend):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165222 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/InspectorReplayAgent.cpp

index dde3e91..7542225 100644 (file)
@@ -1,3 +1,13 @@
+2014-03-06  Brian Burg  <bburg@apple.com>
+
+        Web Replay: premature release() of PassRefPtr in InspectorReplayAgent
+        https://bugs.webkit.org/show_bug.cgi?id=129827
+
+        Reviewed by Timothy Hatcher.
+
+        * inspector/InspectorReplayAgent.cpp:
+        (WebCore::InspectorReplayAgent::didCreateFrontendAndBackend):
+
 2014-03-06  Benjamin Poulain  <bpoulain@apple.com>
 
         [iOS] Do not compile fake mouse event handling when iOS Touch Events are enabled
index 9f45ca1..b5e5ce7 100644 (file)
@@ -167,7 +167,7 @@ void InspectorReplayAgent::didCreateFrontendAndBackend(InspectorFrontendChannel*
     // Keep track of the (default) session currently loaded by ReplayController,
     // and any segments within the session.
     RefPtr<ReplaySession> session = m_page.replayController().loadedSession();
-    m_sessionsMap.add(session->identifier(), session.release());
+    m_sessionsMap.add(session->identifier(), session);
 
     for (auto it = session->begin(); it != session->end(); ++it)
         m_segmentsMap.add((*it)->identifier(), *it);