mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-04 15:06:25 +00:00
Fix some scePsmf leaks.
This commit is contained in:
parent
ea9a6c1b58
commit
c6f52db194
@ -879,6 +879,8 @@ int scePsmfPlayerCreate(u32 psmfPlayer, u32 psmfPlayerDataAddr)
|
||||
if (!psmfplayer) {
|
||||
// TODO: This is the wrong data. PsmfPlayer needs a new interface.
|
||||
psmfplayer = new PsmfPlayer(psmfPlayerDataAddr);
|
||||
if (psmfPlayerMap.find(psmfPlayer) != psmfPlayerMap.end())
|
||||
delete psmfPlayerMap[psmfPlayer];
|
||||
psmfPlayerMap[psmfPlayer] = psmfplayer;
|
||||
}
|
||||
|
||||
@ -1086,6 +1088,8 @@ int scePsmfPlayerStart(u32 psmfPlayer, u32 psmfPlayerData, int initPts)
|
||||
|
||||
if (!psmfplayer) {
|
||||
psmfplayer = new PsmfPlayer(psmfPlayerData);
|
||||
if (psmfPlayerMap.find(psmfPlayer) != psmfPlayerMap.end())
|
||||
delete psmfPlayerMap[psmfPlayer];
|
||||
psmfPlayerMap[psmfPlayer] = psmfplayer;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user