Tiger build fix.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Nov 2007 23:56:02 +0000 (23:56 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Nov 2007 23:56:02 +0000 (23:56 +0000)
Use WebCFAutorelease in place of NSMakeCollectable then autorelease as this also works on Tiger.

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

WebKit/mac/ChangeLog
WebKit/mac/Plugins/WebBaseNetscapePluginStream.mm

index c7775adcc22e24ffee74c677108cf68bed03bc8f..652090fab7a024c3716695c1828afcbc7c9347dc 100644 (file)
@@ -1,3 +1,10 @@
+2007-11-24  Mark Rowe  <mrowe@apple.com>
+
+        Tiger build fix.
+
+        * Plugins/WebBaseNetscapePluginStream.mm:
+        (CarbonPathFromPOSIXPath): Use WebCFAutorelease as this also works on Tiger.
+
 2007-11-24  Mark Rowe  <mrowe@apple.com>
 
         Reviewed by Tim Hatcher.
index f07b0cce801c670e76666ead480d51657ece4034..96047373b5043a820b548a1759cbd7db427c21a8 100644 (file)
@@ -599,8 +599,7 @@ static NSString *CarbonPathFromPOSIXPath(NSString *posixPath)
     if (!url)
         return nil;
 
-    NSString *hfsPath = NSMakeCollectable(CFURLCopyFileSystemPath(url, kCFURLHFSPathStyle));
-    return [hfsPath autorelease];
+    return WebCFAutorelease(CFURLCopyFileSystemPath(url, kCFURLHFSPathStyle));
 }
 
 #endif