Menu

#67 SharedPtr constructor doesn't always initialize correctly

None
closed
nobody
None
5
2014-08-28
2014-08-27
No

SharedPtr(T ptr) and template <class U=""> SharedPtr(U ptr) should also include :
m_Ptr (NULL),
m_RefCount(NULL)

as it is not set in Init() -> Reset() but used which crashes ;)

Thanks!

Discussion

  • Wizzard

    Wizzard - 2014-08-28

    Fixed in commit [800d46] (untested)

     

    Related

    Commit: [800d46]

  • Wizzard

    Wizzard - 2014-08-28
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.