fix minor memleaks

This commit is contained in:
Glenn Maynard
2004-01-21 03:09:59 +00:00
parent 927a47a63e
commit 11e7899226
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ MemoryCardManager::MemoryCardManager()
MemoryCardManager::~MemoryCardManager()
{
delete m_pDriver;
}
void MemoryCardManager::Update( float fDelta )
+4 -1
View File
@@ -1153,7 +1153,10 @@ SDL_Surface *SDL_LoadImage( const CString &sPath )
if( rw == NULL )
return NULL;
return IMG_LoadTyped_RW( rw, true, (char *) GetExtension(sPath).c_str() );
SDL_Surface *ret = IMG_LoadTyped_RW( rw, true, (char *) GetExtension(sPath).c_str() );
SDL_FreeRW( rw );
return ret;
}
struct RWString
+1
View File
@@ -93,6 +93,7 @@ SongManager::SongManager( LoadingWindow *ld )
SongManager::~SongManager()
{
FreeSongs();
FreeCourses();
}
void SongManager::Reload()