GUACAMOLE-1114: Clean up clipboard mutex lock.
This commit is contained in:
parent
264192fd25
commit
d34745a40b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user