mac CLI: call freerdp_stop on applicaiton close
This commit is contained in:
parent
9c1dca14f7
commit
20c677ddaa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user