void bulk_free(rdpBulk* bulk) { if (!bulk) return; mppc_context_free(bulk->mppcSend); mppc_context_free(bulk->mppcRecv); ncrush_context_free(bulk->ncrushRecv); ncrush_context_free(bulk->ncrushSend); xcrush_context_free(bulk->xcrushRecv); xcrush_context_free(bulk->xcrushSend); free(bulk); }
void xcrush_context_free(XCRUSH_CONTEXT* xcrush) { if (xcrush) { mppc_context_free(xcrush->mppc); free(xcrush); } }