From ed5e57ae711651c6de254eee8b96d97dfd6f8212 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 4 May 2012 13:37:32 -0700 Subject: [PATCH] Fix leaks - free clipboard and glyph surfaces. --- protocols/rdp/src/guac_handlers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/rdp/src/guac_handlers.c b/protocols/rdp/src/guac_handlers.c index 3b60a288..a605b0c0 100644 --- a/protocols/rdp/src/guac_handlers.c +++ b/protocols/rdp/src/guac_handlers.c @@ -82,6 +82,9 @@ int rdp_guac_client_free_handler(guac_client* client) { freerdp_free(rdp_inst); /* Free client data */ + cairo_surface_destroy(guac_client_data->opaque_glyph_surface); + cairo_surface_destroy(guac_client_data->trans_glyph_surface); + free(guac_client_data->clipboard); free(guac_client_data); return 0;