fix memory usage regression

This commit is contained in:
Glenn Maynard
2004-10-30 07:18:28 +00:00
parent 093d66ecec
commit 69914bcbbf
+4
View File
@@ -222,6 +222,10 @@ void Steps::Compress() const
{
/* We have a file on disk; clear all data in memory. */
SAFE_DELETE( notes );
/* Be careful; 'x = ""', notes_comp.clear() and notes_comp.reserve(0)
* don't always free the alocated memory. */
notes_comp = CString("");
}
if( notes_comp.empty() )