GUACAMOLE-1114: Clean up clipboard mutex lock.

This commit is contained in:
Jimmy 2020-06-26 22:07:51 +03:00
parent 264192fd25
commit d34745a40b

View File

@ -46,7 +46,14 @@ guac_common_clipboard* guac_common_clipboard_alloc(int size) {
} }
void guac_common_clipboard_free(guac_common_clipboard* clipboard) { void guac_common_clipboard_free(guac_common_clipboard* clipboard) {
/* Destroy lock */
pthread_mutex_destroy(&(clipboard->lock));
/* Free buffer */
free(clipboard->buffer); free(clipboard->buffer);
/* Free base structure */
free(clipboard); free(clipboard);
} }