From bdd6a03de766061057dbd747637446782193afa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 6 May 2010 05:42:57 +0000 Subject: [PATCH] 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 --- include/wx/scopedptr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/scopedptr.h b/include/wx/scopedptr.h index bfe98de16e..8faa383c89 100644 --- a/include/wx/scopedptr.h +++ b/include/wx/scopedptr.h @@ -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; \ } \ } \