mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #2644 from xhaakon/shadow-server-disposal
shadow_client: dispose encomsp and remdesk
This commit is contained in:
commit
649d49549e
|
@ -147,6 +147,10 @@ void shadow_client_context_free(freerdp_peer* peer, rdpShadowClient* client)
|
|||
shadow_encoder_free(client->encoder);
|
||||
client->encoder = NULL;
|
||||
}
|
||||
|
||||
shadow_client_encomsp_uninit(client);
|
||||
|
||||
shadow_client_remdesk_uninit(client);
|
||||
}
|
||||
|
||||
void shadow_client_message_free(wMessage* message)
|
||||
|
|
|
@ -109,3 +109,10 @@ int shadow_client_encomsp_init(rdpShadowClient* client)
|
|||
return 1;
|
||||
}
|
||||
|
||||
void shadow_client_encomsp_uninit(rdpShadowClient* client)
|
||||
{
|
||||
if (client->encomsp) {
|
||||
client->encomsp->Stop(client->encomsp);
|
||||
client->encomsp = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
int shadow_client_encomsp_init(rdpShadowClient* client);
|
||||
void shadow_client_encomsp_uninit(rdpShadowClient* client);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -37,3 +37,11 @@ int shadow_client_remdesk_init(rdpShadowClient* client)
|
|||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void shadow_client_remdesk_uninit(rdpShadowClient* client)
|
||||
{
|
||||
if (client->remdesk) {
|
||||
client->remdesk->Stop(client->remdesk);
|
||||
client->remdesk = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
int shadow_client_remdesk_init(rdpShadowClient* client);
|
||||
void shadow_client_remdesk_uninit(rdpShadowClient* client);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue