From 8c7984d201d8d8d21d2d443ad91fe9db4aad8b2d Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 11 Oct 2019 20:38:46 -0700 Subject: [PATCH] GUACAMOLE-249: Free GDI implementation. Do not allocate cache (unnecessary). --- src/protocols/rdp/rdp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/protocols/rdp/rdp.c b/src/protocols/rdp/rdp.c index 1497517d..46d541ff 100644 --- a/src/protocols/rdp/rdp.c +++ b/src/protocols/rdp/rdp.c @@ -184,9 +184,6 @@ BOOL rdp_freerdp_pre_connect(freerdp* instance) { /* Dynamic virtual channel list is no longer needed */ guac_rdp_dvc_list_free(dvc_list); - /* Init FreeRDP cache */ - instance->context->cache = cache_new(instance->settings); - /* Init FreeRDP internal GDI implementation */ if (!gdi_init(instance, PIXEL_FORMAT_BGRX32)) return FALSE; @@ -569,8 +566,10 @@ static int guac_rdp_handle_connection(guac_client* client) { /* Disconnect client and channels */ freerdp_disconnect(rdp_inst); + /* Clean up FreeRDP internal GDI implementation */ + gdi_free(rdp_inst); + /* Clean up RDP client context */ - cache_free(rdp_inst->context->cache); freerdp_context_free(rdp_inst); /* Clean up RDP client */