Add a missing return statement in WKPageCopySessionState.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jul 2014 02:24:44 +0000 (02:24 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jul 2014 02:24:44 +0000 (02:24 +0000)
Reviewed by Anders Carlsson.

* UIProcess/API/C/WKPage.cpp:
(WKPageCopySessionState):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/C/WKPage.cpp

index 013625e..c0debd0 100644 (file)
@@ -1,3 +1,12 @@
+2014-07-01  Mark Rowe  <mrowe@apple.com>
+
+        Add a missing return statement in WKPageCopySessionState.
+
+        Reviewed by Anders Carlsson.
+
+        * UIProcess/API/C/WKPage.cpp:
+        (WKPageCopySessionState):
+
 2014-07-01  Anders Carlsson  <andersca@apple.com>
 
         Don't encode/decode the snapshot UUID
index 45bddec..bf9d802 100644 (file)
@@ -370,7 +370,7 @@ WKTypeRef WKPageCopySessionState(WKPageRef pageRef, void* context, WKPageSession
     });
 
     if (shouldReturnData)
-        toAPI(encodeLegacySessionState(sessionState).release().leakRef());
+        return toAPI(encodeLegacySessionState(sessionState).release().leakRef());
 
     return toAPI(API::SessionState::create(std::move(sessionState)).leakRef());
 }