Release resources

This commit is contained in:
Benoît LeBlanc 2013-06-18 15:33:18 -04:00
parent 8dfd4075e9
commit 04d471a063
2 changed files with 6 additions and 2 deletions

View File

@ -598,6 +598,12 @@ struct rgba_data
if (run_loop_src != 0)
CFRunLoopRemoveSource(CFRunLoopGetCurrent(), run_loop_src, kCFRunLoopDefaultMode);
freerdp_client_stop((rdpContext*) self->rdp_context);
freerdp_client_context_free((rdpContext*) self->rdp_context);
}
/** *********************************************************************

View File

@ -43,8 +43,6 @@
- (void) applicationWillTerminate:(NSNotification*)notification
{
[mrdpView releaseResources];
[self ReleaseContext];
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender