SONGMAN->FlushCaches whenever deleting Steps*

This commit is contained in:
Glenn Maynard
2004-06-11 21:34:30 +00:00
parent a17b1ead51
commit a29018587f
+4 -1
View File
@@ -84,6 +84,9 @@ Song::~Song()
SAFE_DELETE( m_vpSteps[i] );
m_vpSteps.clear();
/* We deleted some Steps*; clear stuff that used it. */
SONGMAN->FlushCaches();
}
/* Reset to an empty song. */
@@ -100,7 +103,7 @@ void Song::Reset()
/* Courses cache Notes* pointers. On the off chance that this isn't the last
* thing this screen does, clear that cache. */
SONGMAN->Cleanup();
SONGMAN->FlushCaches();
}