mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
Use a less leak prone interface for PBP reading.
This commit is contained in:
1 parent
7b4315bc70
commit
a53f0360f3
6 files changed
+28
-43
No files matched your search
@@ -336,14 +336,12 @@ public:
|
||||
}
|
||||
|
||||
// First, PARAM.SFO.
|
||||
size_t sfoSize;
|
||||
u8 *sfoData = pbp.GetSubFile(PBP_PARAM_SFO, &sfoSize);
|
||||
{
|
||||
std::vector<u8> sfoData;
|
||||
if (pbp.GetSubFile(PBP_PARAM_SFO, &sfoData)) {
|
||||
lock_guard lock(info_->lock);
|
||||
info_->paramSFO.ReadSFO(sfoData, sfoSize);
|
||||
info_->paramSFO.ReadSFO(sfoData);
|
||||
info_->ParseParamSFO();
|
||||
}
|
||||
delete [] sfoData;
|
||||
|
||||
// Then, ICON0.PNG.
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user