Bug 126999

Summary: [iOS] Directly allocate NSMutableDictionary in QLPreviewConverterDictionary() and QLContentDictionary()
Product: WebKit Reporter: Daniel Bates <dbates>
Component: PlatformAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer, joepeck
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch joepeck: review+

Daniel Bates
Reported 2014-01-14 11:29:47 PST
We should retain the NSMutableDictionary dictionary returned by [NSMutableDictionary dictionary] in WebCore::QLPreviewConverterDictionary() and WebCore::QLContentDictionary().
Attachments
Patch (1.98 KB, patch)
2014-01-14 11:32 PST, Daniel Bates
joepeck: review+
Daniel Bates
Comment 1 2014-01-14 11:32:05 PST
Joseph Pecoraro
Comment 2 2014-01-14 11:34:46 PST
Comment on attachment 221185 [details] Patch r=me How about just [[NSMutableDictionary alloc] init]? Avoiding an extra retain/release?
Daniel Bates
Comment 3 2014-01-14 11:35:54 PST
(In reply to comment #2) > (From update of attachment 221185 [details]) > r=me > > How about just [[NSMutableDictionary alloc] init]? Avoiding an extra retain/release? Will change before landing.
Daniel Bates
Comment 4 2014-01-14 12:54:02 PST
Daniel Bates
Comment 5 2014-01-14 12:55:38 PST
Note You need to log in before you can comment on or make changes to this bug.