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:
parent
6d3f658983
commit
9d65d9562b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user