Changeset 157648 in webkit
- Timestamp:
- Oct 18, 2013 2:09:11 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r157643 r157648 1 2013-10-18 Dan Bernstein <mitz@apple.com> 2 3 [Cocoa] WKBrowsingController accessors crash instead of returning nil 4 https://bugs.webkit.org/show_bug.cgi?id=123036 5 6 Reviewed by Anders Carlsson. 7 8 * UIProcess/API/mac/WKBrowsingContextController.mm: 9 (autoreleased): Return nil if the object is NULL. 10 1 11 2013-10-18 Anders Carlsson <andersca@apple.com> 2 12 -
trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm
r154963 r157648 50 50 static inline NSString *autoreleased(WKStringRef string) 51 51 { 52 return CFBridgingRelease(WKStringCopyCFString(kCFAllocatorDefault, adoptWK(string).get()));52 return string ? CFBridgingRelease(WKStringCopyCFString(kCFAllocatorDefault, adoptWK(string).get())) : nil; 53 53 } 54 54 55 55 static inline NSURL *autoreleased(WKURLRef url) 56 56 { 57 return CFBridgingRelease(WKURLCopyCFURL(kCFAllocatorDefault, adoptWK(url).get()));57 return url ? CFBridgingRelease(WKURLCopyCFURL(kCFAllocatorDefault, adoptWK(url).get())) : nil; 58 58 } 59 59
Note: See TracChangeset
for help on using the changeset viewer.