NULL WeakPtr should not malloc!
Created attachment 322429 [details] Patch
Attachment 322429 [details] did not pass style-queue: ERROR: Source/WTF/wtf/WeakPtr.h:70: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 322429 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=322429&action=review lol yes r=me > Source/WTF/wtf/WeakPtr.h:70 > + WeakPtr() { } > + WeakPtr(std::nullptr_t) { } > + WeakPtr(const WeakPtr& o) : m_ref(o.m_ref) { } Should also add WeakPtr(WeakPtr&&) = default at some point (and operator= too).
Committed r222752: <http://trac.webkit.org/changeset/222752>
<rdar://problem/34778205>