O
olan
Hi
I'm kinda new at this, but...
I have a class with a STL string m_strText
and a member function that sets the text :
void CTest::SetString( char *pszText )
{
m_strText = pszText;
}
When my program exits, I have a memory leak that corresponds
to the text in m_strText.
Do I have to do something special to free up the memory?
I didn't see any functions like that in the STL string docs.
Thanks
Fred
PS this is with MSVC++ 6.0
I'm kinda new at this, but...
I have a class with a STL string m_strText
and a member function that sets the text :
void CTest::SetString( char *pszText )
{
m_strText = pszText;
}
When my program exits, I have a memory leak that corresponds
to the text in m_strText.
Do I have to do something special to free up the memory?
I didn't see any functions like that in the STL string docs.
Thanks
Fred
PS this is with MSVC++ 6.0