Reviewed by Darin.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Mar 2008 22:35:27 +0000 (22:35 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Mar 2008 22:35:27 +0000 (22:35 +0000)
        Fix crash that happens when trying to load a page with a Java applet.

        * WebCoreSupport/WebFrameLoaderClient.mm:
        Don't release the names and values array - the kit method returns an autoreleased array.

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

WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm

index b29229aed7a54ec6c2004336ab18745304a56a16..9394b8a9b90f1a6b57430c9d40974790ea965a9c 100644 (file)
@@ -1,3 +1,12 @@
+2008-03-04  Anders Carlsson  <andersca@apple.com>
+
+        Reviewed by Darin.
+
+        Fix crash that happens when trying to load a page with a Java applet.
+        
+        * WebCoreSupport/WebFrameLoaderClient.mm:
+        Don't release the names and values array - the kit method returns an autoreleased array.
+
 2008-03-04  Darin Adler  <darin@apple.com>
 
         Reviewed by Adam.
index 681ce488a12664f5597c2abb7053ff927c272354..ed9827416276f17e4b8e005640be71e8eb221b76 100644 (file)
@@ -1430,9 +1430,6 @@ Widget* WebFrameLoaderClient::createJavaAppletWidget(const IntSize& size, Elemen
                 [values addObject:[NSString stringWithFormat:@"%d", size.width()]];
             }
             view = pluginView(m_webFrame.get(), (WebPluginPackage *)pluginPackage, names, values, baseURL, kit(element), NO);
-            [names release];
-            [values release];
-            
         } 
 #ifndef __LP64__
         else if ([pluginPackage isKindOfClass:[WebNetscapePluginPackage class]]) {