Prepare for dumping NPDRM isos, use shared_ptr to manage lifetime of BlockDevice

This commit is contained in:
Henrik Rydgård
2026-03-19 13:59:04 +01:00
parent 4c3d982182
commit 0e55129fab
11 changed files with 17 additions and 16 deletions
+1 -2
View File
@@ -140,7 +140,7 @@ struct VolDescriptor {
#pragma pack(pop)
ISOFileSystem::ISOFileSystem(IHandleAllocator *_hAlloc, BlockDevice *_blockDevice) {
ISOFileSystem::ISOFileSystem(IHandleAllocator *_hAlloc, std::shared_ptr<BlockDevice> _blockDevice) {
blockDevice = _blockDevice;
hAlloc = _hAlloc;
@@ -173,7 +173,6 @@ ISOFileSystem::ISOFileSystem(IHandleAllocator *_hAlloc, BlockDevice *_blockDevic
}
ISOFileSystem::~ISOFileSystem() {
delete blockDevice;
delete treeroot;
}