void rdg_free(rdpRdg* rdg) { if (!rdg) return; if (rdg->tlsOut) { tls_free(rdg->tlsOut); rdg->tlsOut = NULL; } if (rdg->tlsIn) { tls_free(rdg->tlsIn); rdg->tlsIn = NULL; } if (rdg->http) { http_context_free(rdg->http); rdg->http = NULL; } if (rdg->ntlm) { ntlm_free(rdg->ntlm); rdg->ntlm = NULL; } DeleteCriticalSection(&rdg->writeSection); free(rdg); }
void ntlm_http_free(rdpNtlmHttp* ntlm_http) { if (ntlm_http != NULL) { ntlm_free(ntlm_http->ntlm); http_context_free(ntlm_http->context); } }
void ntlm_http_free(rdpNtlmHttp* ntlm_http) { if (!ntlm_http) return; ntlm_free(ntlm_http->ntlm); http_context_free(ntlm_http->context); free(ntlm_http); }
static void rpc_out_channel_rpch_uninit(RpcOutChannel* outChannel) { if (outChannel->ntlm) { ntlm_free(outChannel->ntlm); outChannel->ntlm = NULL; } if (outChannel->http) { http_context_free(outChannel->http); outChannel->http = NULL; } }
static void rpc_in_channel_rpch_uninit(RpcInChannel* inChannel) { if (inChannel->ntlm) { ntlm_free(inChannel->ntlm); inChannel->ntlm = NULL; } if (inChannel->http) { http_context_free(inChannel->http); inChannel->http = NULL; } }
void rdg_free(rdpRdg* rdg) { if (!rdg) return; if (rdg->tlsOut) { tls_free(rdg->tlsOut); rdg->tlsOut = NULL; } if (rdg->tlsIn) { tls_free(rdg->tlsIn); rdg->tlsIn = NULL; } if (rdg->http) { http_context_free(rdg->http); rdg->http = NULL; } if (rdg->ntlm) { ntlm_free(rdg->ntlm); rdg->ntlm = NULL; } if (rdg->readEvent) { CloseHandle(rdg->readEvent); rdg->readEvent = NULL; } free(rdg); }