Title: [125887] trunk/Source/WebCore
Revision
125887
Author
[email protected]
Date
2012-08-17 05:30:31 -0700 (Fri, 17 Aug 2012)

Log Message

Unreviewed trivial follow-up fix to r125873: Add missing adoptRef to avoid leaks.

* bridge/qt/qt_instance.cpp:
(JSC::Bindings::WeakMap::set):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (125886 => 125887)


--- trunk/Source/WebCore/ChangeLog	2012-08-17 12:25:15 UTC (rev 125886)
+++ trunk/Source/WebCore/ChangeLog	2012-08-17 12:30:31 UTC (rev 125887)
@@ -1,3 +1,10 @@
+2012-08-17  Simon Hausmann  <[email protected]>
+
+        Unreviewed trivial follow-up fix to r125873: Add missing adoptRef to avoid leaks.
+
+        * bridge/qt/qt_instance.cpp:
+        (JSC::Bindings::WeakMap::set):
+
 2012-08-17  Kentaro Hara  <[email protected]>
 
         Remove RefPtr from DateInputType::m_pickerElement

Modified: trunk/Source/WebCore/bridge/qt/qt_instance.cpp (125886 => 125887)


--- trunk/Source/WebCore/bridge/qt/qt_instance.cpp	2012-08-17 12:25:15 UTC (rev 125886)
+++ trunk/Source/WebCore/bridge/qt/qt_instance.cpp	2012-08-17 12:30:31 UTC (rev 125887)
@@ -77,7 +77,7 @@
         JSContextGroupRef group = JSContextGetGroup(context);
         WeakMapSet::AddResult entry = weakMaps.add(group, 0);
         if (entry.isNewEntry)
-            entry.iterator->second = new WeakMapImpl(group);
+            entry.iterator->second = adoptRef(new WeakMapImpl(group));
         m_impl = entry.iterator->second;
     }
     JSWeakObjectMapSet(m_impl->m_context, m_impl->m_map, key, object);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to