Changeset 52550 in webkit
- Timestamp:
- Dec 24, 2009 9:03:40 AM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r52538 r52550 1 2009-12-24 Shu Chang <Chang.Shu@nokia.com> 2 3 Reviewed by Laszlo Gombos. 4 5 [Qt] Fix memory leak by deleting instance of ThreadPrivate 6 in function waitForThreadCompletion(), synchronously, or in 7 detachThread(), asynchronously. 8 https://bugs.webkit.org/show_bug.cgi?id=32614 9 10 * wtf/qt/ThreadingQt.cpp: 11 (WTF::waitForThreadCompletion): 12 (WTF::detachThread): 13 1 14 2009-12-23 Kwang Yul Seo <skyul@company100.net> 2 15 -
trunk/JavaScriptCore/wtf/qt/ThreadingQt.cpp
r52355 r52550 181 181 *result = static_cast<ThreadPrivate*>(thread)->getReturnValue(); 182 182 183 delete thread; 184 183 185 return !res; 184 186 } 185 187 186 void detachThread(ThreadIdentifier) 187 { 188 void detachThread(ThreadIdentifier threadID) 189 { 190 ASSERT(threadID); 191 192 QThread* thread = threadForIdentifier(threadID); 193 if (thread) 194 thread->deleteLater(); 195 clearThreadForIdentifier(threadID); 188 196 } 189 197
Note: See TracChangeset
for help on using the changeset viewer.