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:
Matthew Parlane
2013-03-01 19:21:34 +13:00
parent 5c4a130688
commit 99cf57eb39
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,7 @@ bool Keyboard::UpdateInput()
CGRectMakeWithDictionaryRepresentation(boundsDictionary, &bounds);
}
CFRelease(windowDescriptions);
CFRelease(windowArray);
CGEventRef event = CGEventCreate(nil);