Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes two memory leaks, one is pretty bad for OSX.
Yell at pauldachz if this doesn't work.
Or... say thanks.
  • Loading branch information
Parlane committed Mar 1, 2013
1 parent 5c4a130 commit 99cf57e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/DiscIO/Src/WiiWad.cpp
Expand Up @@ -49,7 +49,8 @@ WiiWAD::WiiWAD(const std::string& _rName)
if (pReader == NULL || File::IsDirectory(_rName))
{
m_Valid = false;
return;
if(pReader) delete pReader;
return;
}

m_Valid = ParseWAD(*pReader);
Expand Down
Expand Up @@ -69,6 +69,7 @@
CGRectMakeWithDictionaryRepresentation(boundsDictionary, &bounds);
}

CFRelease(windowDescriptions);
CFRelease(windowArray);

CGEventRef event = CGEventCreate(nil);
Expand Down

0 comments on commit 99cf57e

Please sign in to comment.