Changeset 58755 in webkit
- Timestamp:
- May 4, 2010 6:53:57 AM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r58753 r58755 1 2010-05-04 Jedrzej Nowacki <jedrzej.nowacki@nokia.com> 2 3 Reviewed by Holger Freyther. 4 5 Fix a memory leak inside the QScriptValue. 6 7 QSciptValuePrivate::toString should release all temporary variables. 8 9 [Qt] QScriptValue::toString have a memory leak. 10 https://bugs.webkit.org/show_bug.cgi?id=38112 11 12 * qt/api/qscriptvalue_p.h: 13 (QScriptValuePrivate::toString): 14 1 15 2010-05-04 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 16 -
trunk/JavaScriptCore/qt/api/qscriptvalue_p.h
r58483 r58755 25 25 #include "qscriptvalue.h" 26 26 #include <JavaScriptCore/JavaScript.h> 27 #include <JavaScriptCore/JSRetainPtr.h> 27 28 #include <QtCore/qmath.h> 28 29 #include <QtCore/qnumeric.h> … … 425 426 case JSPrimitive: 426 427 case JSObject: 427 return QScriptConverter::toString(JSValueToStringCopy(context(), value(), /* exception */ 0)); 428 JSRetainPtr<JSStringRef> ptr(Adopt, JSValueToStringCopy(context(), value(), /* exception */ 0)); 429 return QScriptConverter::toString(ptr.get()); 428 430 } 429 431
Note: See TracChangeset
for help on using the changeset viewer.