2011-05-11 Sam Weinig <sam@webkit.org>
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 May 2011 00:58:31 +0000 (00:58 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 May 2011 00:58:31 +0000 (00:58 +0000)
        Reviewed by Gavin Barraclough.

        WebKit2 doesn't build on Mac with strict PassOwnPtr
        https://bugs.webkit.org/show_bug.cgi?id=60655

        * Platform/CoreIPC/HandleMessage.h:
        (CoreIPC::handleMessageDelayed):
        Add explicit adoptPtr to indicate that the constructor is taking ownership.

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

Source/WebKit2/ChangeLog
Source/WebKit2/Platform/CoreIPC/HandleMessage.h

index 93b46f9..4acdb32 100644 (file)
@@ -1,3 +1,14 @@
+2011-05-11  Sam Weinig  <sam@webkit.org>
+
+        Reviewed by Gavin Barraclough.
+
+        WebKit2 doesn't build on Mac with strict PassOwnPtr
+        https://bugs.webkit.org/show_bug.cgi?id=60655
+
+        * Platform/CoreIPC/HandleMessage.h:
+        (CoreIPC::handleMessageDelayed):
+        Add explicit adoptPtr to indicate that the constructor is taking ownership.
+
 2011-05-11  Jessie Berlin  <jberlin@apple.com>
 
         Reviewed by Steve Falkenburg.
index 0ea1688..19a4562 100644 (file)
@@ -312,7 +312,7 @@ void handleMessageDelayed(Connection* connection, ArgumentDecoder* argumentDecod
     if (!argumentDecoder->decode(arguments))
         return;
 
-    RefPtr<typename T::DelayedReply> delayedReply = adoptRef(new typename T::DelayedReply(connection, replyEncoder));
+    RefPtr<typename T::DelayedReply> delayedReply = adoptRef(new typename T::DelayedReply(connection, adoptPtr(replyEncoder)));
     callMemberFunction(arguments, delayedReply.release(), object, function);
 }