GUACAMOLE-1114: Merge fix the destruction of some thread mutexes
This commit is contained in:
commit
c10ceab7e8
@ -46,7 +46,14 @@ guac_common_clipboard* guac_common_clipboard_alloc(int size) {
|
||||
}
|
||||
|
||||
void guac_common_clipboard_free(guac_common_clipboard* clipboard) {
|
||||
|
||||
/* Destroy lock */
|
||||
pthread_mutex_destroy(&(clipboard->lock));
|
||||
|
||||
/* Free buffer */
|
||||
free(clipboard->buffer);
|
||||
|
||||
/* Free base structure */
|
||||
free(clipboard);
|
||||
}
|
||||
|
||||
|
@ -631,6 +631,9 @@ void guac_rdp_print_job_free(guac_rdp_print_job* job) {
|
||||
/* Wait for job to terminate */
|
||||
pthread_join(job->output_thread, NULL);
|
||||
|
||||
/* Destroy lock */
|
||||
pthread_mutex_destroy(&(job->state_lock));
|
||||
|
||||
/* Free base structure */
|
||||
free(job);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user