mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01:00
Fixes two memory leaks, one is pretty bad for OSX.
Yell at pauldachz if this doesn't work. Or... say thanks.
This commit is contained in:
parent
5c4a130688
commit
99cf57eb39
@ -49,7 +49,8 @@ WiiWAD::WiiWAD(const std::string& _rName)
|
|||||||
if (pReader == NULL || File::IsDirectory(_rName))
|
if (pReader == NULL || File::IsDirectory(_rName))
|
||||||
{
|
{
|
||||||
m_Valid = false;
|
m_Valid = false;
|
||||||
return;
|
if(pReader) delete pReader;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_Valid = ParseWAD(*pReader);
|
m_Valid = ParseWAD(*pReader);
|
||||||
|
@ -69,6 +69,7 @@ bool Keyboard::UpdateInput()
|
|||||||
CGRectMakeWithDictionaryRepresentation(boundsDictionary, &bounds);
|
CGRectMakeWithDictionaryRepresentation(boundsDictionary, &bounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CFRelease(windowDescriptions);
|
||||||
CFRelease(windowArray);
|
CFRelease(windowArray);
|
||||||
|
|
||||||
CGEventRef event = CGEventCreate(nil);
|
CGEventRef event = CGEventCreate(nil);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user