Commit 0767e95f authored by loring's avatar loring

text 2d colleague

fix alloc-dealloc-mismatch (operator new [] vs operator delete)


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23757 18c085ea-50e0-402c-830e-de6fd14e8384
parent 5eb43c8e
......@@ -122,28 +122,17 @@ avtText2DColleague::avtText2DColleague(VisWindowColleagueProxy &m)
// Creation: Wed Nov 5 14:18:31 PST 2003
//
// Modifications:
//
// Burlen Loring, Mon Jul 14 14:04:31 PDT 2014
// fix alloc-dealloc-mismatch (operator new [] vs operator delete)
//
// ****************************************************************************
avtText2DColleague::~avtText2DColleague()
{
if (textActor != NULL)
{
if (textActor)
textActor->Delete();
textActor = NULL;
}
if (textString != NULL)
{
delete [] textString;
textString = NULL;
}
if(textFormatString != NULL)
{
delete textFormatString;
textFormatString = NULL;
}
delete [] textString;
delete [] textFormatString;
}
// ****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment