Using freerdp_channels_disconnect now.

This commit is contained in:
Armin Novak 2015-01-20 11:25:14 +01:00
parent 5bc1e41109
commit 0700b806c1

View File

@ -223,7 +223,7 @@ int ios_run_freerdp(freerdp* instance)
mfi->connection_state = TSXConnectionDisconnected;
// Cleanup
freerdp_channels_close(channels, instance);
freerdp_channels_disconnect(channels, instance);
freerdp_disconnect(instance);
gdi_free(instance);
cache_free(instance->context->cache);
@ -252,6 +252,7 @@ int ios_context_new(freerdp* instance, rdpContext* context)
void ios_context_free(freerdp* instance, rdpContext* context)
{
mfInfo* mfi = ((mfContext*) context)->mfi;
freerdp_channels_close(channels, instance);
freerdp_channels_free(context->channels);
ios_events_free_pipe(mfi);
free(mfi);