Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unique_ptr for some IVolume instances #1986

Merged
merged 1 commit into from Jan 30, 2015

Conversation

lioncash
Copy link
Member

Also fixes a leak that would occur any time a WAD was launched.

@@ -120,7 +120,7 @@ bool CBoot::Boot_WiiWAD(const std::string& _pFilename)
Memory::Write_U32(Memory::Read_U32(0x00003140), 0x00003188);

// Load patches and run startup patches
const DiscIO::IVolume* pVolume = DiscIO::CreateVolumeFromFilename(_pFilename);
const std::unique_ptr<DiscIO::IVolume> pVolume(DiscIO::CreateVolumeFromFilename(_pFilename));

This comment was marked as off-topic.

This comment was marked as off-topic.

degasus added a commit that referenced this pull request Jan 30, 2015
Use unique_ptr for some IVolume instances
@degasus degasus merged commit 92294bf into dolphin-emu:master Jan 30, 2015
@lioncash lioncash deleted the unique branch January 31, 2015 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants