Changeset 70390 in webkit
- Timestamp:
- Oct 23, 2010 8:08:49 AM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r70320 r70390 1 2010-10-23 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 Crashes randomly in cairo_scaled_font_destroy 6 https://bugs.webkit.org/show_bug.cgi?id=46794 7 8 Make PlatformRefPtr aware of hashTableDeletedValue. When PlatformRefPtr 9 goes away this should probably be handled in the future via some special 10 hooks in RefCounted (or its contained type). 11 12 * wtf/PlatformRefPtr.h: 13 (WTF::PlatformRefPtr::~PlatformRefPtr): 14 (WTF::PlatformRefPtr::clear): 15 (WTF::::operator): 16 1 17 2010-10-22 Adam Roben <aroben@apple.com> 2 18 -
trunk/JavaScriptCore/wtf/PlatformRefPtr.h
r67724 r70390 63 63 ~PlatformRefPtr() 64 64 { 65 if (T* ptr = m_ptr) 65 T* ptr = m_ptr; 66 if (ptr && ptr != hashTableDeletedValue()) 66 67 derefPlatformPtr(ptr); 67 68 } … … 71 72 T* ptr = m_ptr; 72 73 m_ptr = 0; 73 if (ptr )74 if (ptr && ptr != hashTableDeletedValue()) 74 75 derefPlatformPtr(ptr); 75 76 } … … 111 112 T* ptr = m_ptr; 112 113 m_ptr = optr; 113 if (ptr )114 if (ptr && ptr != hashTableDeletedValue()) 114 115 derefPlatformPtr(ptr); 115 116 return *this; … … 122 123 refPlatformPtr(optr); 123 124 m_ptr = optr; 124 if (ptr )125 if (ptr && ptr != hashTableDeletedValue()) 125 126 derefPlatformPtr(ptr); 126 127 return *this;
Note: See TracChangeset
for help on using the changeset viewer.