#99650# use of auto_ptr when deleting window

This commit is contained in:
Ocke Janssen
2002-05-29 07:31:08 +00:00
parent 134fa62149
commit 04fff3cadf
6 changed files with 50 additions and 25 deletions

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: QueryTextView.cxx,v $
*
* $Revision: 1.12 $
* $Revision: 1.13 $
*
* last change: $Author: oj $ $Date: 2002-02-06 08:15:30 $
* last change: $Author: oj $ $Date: 2002-05-29 08:28:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -130,7 +130,8 @@ OQueryTextView::OQueryTextView(OQueryContainerWindow* _pParent)
// -----------------------------------------------------------------------------
OQueryTextView::~OQueryTextView()
{
DELETEZ(m_pEdit);
::std::auto_ptr<Window> aTemp(m_pEdit);
m_pEdit = NULL;
DBG_DTOR(OQueryTextView,NULL);
}
// -----------------------------------------------------------------------------