fix minor memleaks
This commit is contained in:
@@ -45,7 +45,7 @@ MemoryCardManager::MemoryCardManager()
|
|||||||
|
|
||||||
MemoryCardManager::~MemoryCardManager()
|
MemoryCardManager::~MemoryCardManager()
|
||||||
{
|
{
|
||||||
|
delete m_pDriver;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MemoryCardManager::Update( float fDelta )
|
void MemoryCardManager::Update( float fDelta )
|
||||||
|
|||||||
@@ -1153,7 +1153,10 @@ SDL_Surface *SDL_LoadImage( const CString &sPath )
|
|||||||
if( rw == NULL )
|
if( rw == NULL )
|
||||||
return 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
|
struct RWString
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ SongManager::SongManager( LoadingWindow *ld )
|
|||||||
SongManager::~SongManager()
|
SongManager::~SongManager()
|
||||||
{
|
{
|
||||||
FreeSongs();
|
FreeSongs();
|
||||||
|
FreeCourses();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SongManager::Reload()
|
void SongManager::Reload()
|
||||||
|
|||||||
Reference in New Issue
Block a user