Fix leaks - free clipboard and glyph surfaces.

This commit is contained in:
Michael Jumper 2012-05-04 13:37:32 -07:00
parent 325e4dfdb1
commit ed5e57ae71

View File

@ -82,6 +82,9 @@ int rdp_guac_client_free_handler(guac_client* client) {
freerdp_free(rdp_inst); freerdp_free(rdp_inst);
/* Free client data */ /* 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); free(guac_client_data);
return 0; return 0;