Fixed typos.
gdi_free now done on disconnect.
This commit is contained in:
parent
600074373c
commit
524e4635fd
@ -802,6 +802,7 @@ static void xf_post_disconnect(freerdp* instance)
|
|||||||
}
|
}
|
||||||
|
|
||||||
xf_monitors_free(xfc, instance->settings);
|
xf_monitors_free(xfc, instance->settings);
|
||||||
|
gdi_free(instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xf_play_sound(rdpContext* context, PLAY_SOUND_UPDATE* play_sound)
|
static void xf_play_sound(rdpContext* context, PLAY_SOUND_UPDATE* play_sound)
|
||||||
@ -1657,7 +1658,6 @@ void* xf_thread(void *param)
|
|||||||
exit_code = freerdp_error_info(instance);
|
exit_code = freerdp_error_info(instance);
|
||||||
|
|
||||||
freerdp_disconnect(instance);
|
freerdp_disconnect(instance);
|
||||||
gdi_free(instance);
|
|
||||||
|
|
||||||
ExitThread(exit_code);
|
ExitThread(exit_code);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -333,8 +333,8 @@ BOOL freerdp_disconnect(freerdp* instance)
|
|||||||
|
|
||||||
BOOL freerdp_reconnect(freerdp* instance)
|
BOOL freerdp_reconnect(freerdp* instance)
|
||||||
{
|
{
|
||||||
BOOL rc = rdp_disconnect(instance);
|
freerdp_disconnect(instance);
|
||||||
return rc && rdp_connect(instance);
|
return freerdp_connect(instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL freerdp_shall_disconnect(freerdp* instance)
|
BOOL freerdp_shall_disconnect(freerdp* instance)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user