Merge pull request #332 from unknownbrackets/mpeg-delete

Delete mpeg objects properly, fixing double free.
This commit is contained in:
Henrik Rydgård 2013-01-05 13:56:36 -08:00
commit 9a60fabc1e

View File

@ -409,7 +409,7 @@ int sceMpegDelete(u32 mpeg)
delete ctx->mediaengine;
delete ctx;
mpegMap.erase(mpeg);
mpegMap.erase(Memory::Read_U32(mpeg));
return 0;
}