mac CLI: call freerdp_stop on applicaiton close

This commit is contained in:
Benoît LeBlanc 2013-12-20 11:54:18 -05:00
parent 9c1dca14f7
commit 20c677ddaa

View File

@ -59,8 +59,13 @@ void mac_set_view_size(rdpContext* context, MRDPView* view);
- (void) applicationWillTerminate:(NSNotification*)notification
{
NSLog(@"Stopping...\n");
freerdp_client_stop(context);
[mrdpView releaseResources];
_singleDelegate = nil;
NSLog(@"Stopped.\n");
}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender