Title: [156196] trunk/Source/WebCore
Revision
156196
Author
[email protected]
Date
2013-09-20 13:40:53 -0700 (Fri, 20 Sep 2013)

Log Message

-[WebHTMLConveter _getFloat:forNode:property:] leaks
https://bugs.webkit.org/show_bug.cgi?id=121709

Reviewed by Enrica Casucci.

* platform/mac/HTMLConverter.mm:
(-[WebHTMLConverter _getFloat:forNode:property:]): Don't leak.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (156195 => 156196)


--- trunk/Source/WebCore/ChangeLog	2013-09-20 20:35:40 UTC (rev 156195)
+++ trunk/Source/WebCore/ChangeLog	2013-09-20 20:40:53 UTC (rev 156196)
@@ -1,3 +1,13 @@
+2013-09-20  Alexey Proskuryakov  <[email protected]>
+
+        -[WebHTMLConveter _getFloat:forNode:property:] leaks
+        https://bugs.webkit.org/show_bug.cgi?id=121709
+
+        Reviewed by Enrica Casucci.
+
+        * platform/mac/HTMLConverter.mm:
+        (-[WebHTMLConverter _getFloat:forNode:property:]): Don't leak.
+
 2013-09-20  Yongjun Zhang  <[email protected]>
 
         Add an argument to ImageSource::createFrameAtIndex to hint a decoder that we expect a scaled image.

Modified: trunk/Source/WebCore/platform/mac/HTMLConverter.mm (156195 => 156196)


--- trunk/Source/WebCore/platform/mac/HTMLConverter.mm	2013-09-20 20:35:40 UTC (rev 156195)
+++ trunk/Source/WebCore/platform/mac/HTMLConverter.mm	2013-09-20 20:40:53 UTC (rev 156196)
@@ -789,7 +789,7 @@
     NSNumber *floatNumber;
     RetainPtr<NSMutableDictionary> attributeDictionary = [_floatsForNodes objectForKey:node];
     if (!attributeDictionary) {
-        attributeDictionary = [[NSMutableDictionary alloc] init];
+        attributeDictionary = adoptNS([[NSMutableDictionary alloc] init]);
         [_floatsForNodes setObject:attributeDictionary.get() forKey:node];
     }
     floatNumber = [attributeDictionary objectForKey:key];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to