mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-10-07 09:33:28 +00:00
Fix deallocating an X11Display
This commit is contained in:
parent
4287f05174
commit
29c1349bc6
@ -112,13 +112,12 @@ static void socketCallback(
|
||||
}
|
||||
|
||||
-(void)dealloc {
|
||||
if(_display)
|
||||
if(_display) XCloseDisplay(_display);
|
||||
#ifdef DARLING
|
||||
CFRelease(_source);
|
||||
CFRelease(_cfSocket);
|
||||
if (_source != NULL) CFRelease(_source);
|
||||
if (_cfSocket != NULL) CFRelease(_cfSocket);
|
||||
#endif
|
||||
XCloseDisplay(_display);
|
||||
|
||||
|
||||
[_windowsByID release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user