delete NormalFont;
delete BoldFont;
delete ItalicFont;
- delete poem_buffer;
+ delete[] poem_buffer;
+ if (search_string)
+ delete[] search_string;
return 0;
}
// Load index (or compile it if none found)
void TryLoadIndex()
{
- index_ok = LoadIndex(index_filename);
+ index_ok = (LoadIndex(index_filename) != 0);
if (!index_ok || (nitems == 0))
{
PoetryError("Index file not found; will compile new one", "wxPoem");