Fixed missing NULL set of pointer after free

Due to this double free was possible if disconnect_and_clear was
called multiple times.
This commit is contained in:
Armin Novak 2020-01-21 14:40:33 +01:00
parent 6d3f658983
commit 9d65d9562b

View File

@ -394,6 +394,7 @@ BOOL rdp_client_disconnect(rdpRdp* rdp)
return FALSE; return FALSE;
codecs_free(context->codecs); codecs_free(context->codecs);
context->codecs = NULL;
return TRUE; return TRUE;
} }