iOS: Fix resource leak
This commit is contained in:
parent
ce4e02ae48
commit
dd5cbef467
@ -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 -
|
||||
|
Loading…
Reference in New Issue
Block a user