From dc6262b587c71c14e30d93e57ed812e36a79a33e Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 24 Sep 2012 13:09:44 +0200 Subject: Imported WebKit commit 6339232fec7f5d9984a33388aecfd2cbc7832053 (http://svn.webkit.org/repository/webkit/trunk@129343) New snapshot with build fixes for latest qtbase --- Tools/TestWebKitAPI/InjectedBundleController.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Tools/TestWebKitAPI/InjectedBundleController.cpp') diff --git a/Tools/TestWebKitAPI/InjectedBundleController.cpp b/Tools/TestWebKitAPI/InjectedBundleController.cpp index 537104fb9..fb78013ee 100644 --- a/Tools/TestWebKitAPI/InjectedBundleController.cpp +++ b/Tools/TestWebKitAPI/InjectedBundleController.cpp @@ -70,9 +70,11 @@ void InjectedBundleController::initialize(WKBundleRef bundle, WKTypeRef initiali assert(WKGetTypeID(initializationUserData) == WKDictionaryGetTypeID()); WKDictionaryRef initializationDictionary = static_cast(initializationUserData); - WKStringRef testName = static_cast(WKDictionaryGetItemForKey(initializationDictionary, WKStringCreateWithUTF8CString("TestName"))); + WKRetainPtr testNameKey(AdoptWK, WKStringCreateWithUTF8CString("TestName")); + WKStringRef testName = static_cast(WKDictionaryGetItemForKey(initializationDictionary, testNameKey.get())); - WKTypeRef userData = WKDictionaryGetItemForKey(initializationDictionary, WKStringCreateWithUTF8CString("UserData")); + WKRetainPtr userDataKey(AdoptWK, WKStringCreateWithUTF8CString("UserData")); + WKTypeRef userData = WKDictionaryGetItemForKey(initializationDictionary, userDataKey.get()); initializeTestNamed(bundle, Util::toSTD(testName), userData); } -- cgit v1.2.1