Ignore NULL pointer as rdpsnd_server_context_free argument

This commit is contained in:
akallabeth 2021-09-03 07:58:04 +02:00 committed by akallabeth
parent 7e7394d905
commit 732a4d3839

View File

@ -857,6 +857,9 @@ void rdpsnd_server_context_reset(RdpsndServerContext* context)
void rdpsnd_server_context_free(RdpsndServerContext* context)
{
if (!context)
return;
if (context->priv->ChannelHandle)
WTSVirtualChannelClose(context->priv->ChannelHandle);