mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
iOS: Fix resource leak
This commit is contained in:
@@ -221,7 +221,9 @@ ios_run_freerdp(freerdp * instance)
|
||||
|
||||
[pool release]; pool = nil;
|
||||
}
|
||||
|
||||
|
||||
CGContextRelease(mfi->bitmap_context);
|
||||
mfi->bitmap_context = NULL;
|
||||
mfi->connection_state = TSXConnectionDisconnected;
|
||||
|
||||
// Cleanup
|
||||
|
||||
@@ -190,9 +190,7 @@ NSString* TSXSessionDidFailToConnectNotification = @"TSXSessionDidFailToConnect"
|
||||
|
||||
- (CGContextRef)bitmapContext
|
||||
{
|
||||
if ([self mfi]->connection_state == TSXConnectionConnected)
|
||||
return [self mfi]->bitmap_context;
|
||||
return NULL;
|
||||
return [self mfi]->bitmap_context;
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
Reference in New Issue
Block a user