X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9a4f2295344414e2ee4e3ec27fa5292918dff27..66c2bf7b1d9326fb650acfaae22ec50528cfbf7c:/include/wx/sharedptr.h diff --git a/include/wx/sharedptr.h b/include/wx/sharedptr.h index 279e29b3a3..c6b28f81a6 100644 --- a/include/wx/sharedptr.h +++ b/include/wx/sharedptr.h @@ -3,7 +3,6 @@ // Purpose: Shared pointer based on the counted_ptr<> template, which // is in the public domain // Author: Robert Roebling, Yonat Sharon -// RCS-ID: $Id$ // Copyright: Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -115,8 +114,7 @@ private: { if (m_ref) { - wxAtomicDec( m_ref->m_count ); - if (m_ref->m_count == 0) + if (!wxAtomicDec( m_ref->m_count )) { delete m_ref->m_ptr; delete m_ref;