mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
fix some memleaks in DiscIO. Fix for issue 1238.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3936 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -122,7 +122,7 @@ bool CBannerLoaderWii::GetBanner(u32* _pBannerImage)
|
||||
{
|
||||
SWiiBanner* pBanner = (SWiiBanner*)m_pBannerFile;
|
||||
|
||||
u32 Buffer[192 * 64];
|
||||
u32* Buffer = new u32[192 * 64];
|
||||
decode5A3image(Buffer, (u16*)pBanner->m_BannerTexture, 192, 64);
|
||||
|
||||
// ugly scaling :) TODO: at least a 2x2 box filter, preferably a 3x3 gaussian :)
|
||||
@ -132,7 +132,9 @@ bool CBannerLoaderWii::GetBanner(u32* _pBannerImage)
|
||||
{
|
||||
_pBannerImage[y*96+x] = Buffer[(y*192*2) + (x*2)];
|
||||
}
|
||||
}
|
||||
}
|
||||
delete pBanner;
|
||||
delete[] Buffer;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user