Use wxCHECKED_DELETE in wxScopedPtr::reset().
It was only used in delete call in destructor, but the use in reset() needs safeguards as well. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4e0c592f98
commit
bdd6a03de7
@ -63,7 +63,7 @@ public:
|
||||
{
|
||||
if ( ptr != m_ptr )
|
||||
{
|
||||
delete m_ptr;
|
||||
wxCHECKED_DELETE(m_ptr);
|
||||
m_ptr = ptr;
|
||||
}
|
||||
}
|
||||
@ -133,7 +133,7 @@ public: \
|
||||
{ \
|
||||
if (m_ptr != ptr) \
|
||||
{ \
|
||||
delete m_ptr; \
|
||||
wxCHECKED_DELETE(m_ptr);\
|
||||
m_ptr = ptr; \
|
||||
} \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user