mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 23:49:04 +00:00
server/red_worker.c: fix - locking the wrong mutex when releasing glz dict
This commit is contained in:
parent
5c99a6da4f
commit
06c2e22fd9
@ -8604,13 +8604,13 @@ static void red_release_glz(DisplayChannel *channel)
|
||||
}
|
||||
|
||||
channel->glz_dict = NULL;
|
||||
pthread_mutex_lock(&cache_lock);
|
||||
pthread_mutex_lock(&glz_dictionary_list_lock);
|
||||
if (--shared_dict->refs) {
|
||||
pthread_mutex_unlock(&cache_lock);
|
||||
pthread_mutex_unlock(&glz_dictionary_list_lock);
|
||||
return;
|
||||
}
|
||||
ring_remove(&shared_dict->base);
|
||||
pthread_mutex_unlock(&cache_lock);
|
||||
pthread_mutex_unlock(&glz_dictionary_list_lock);
|
||||
glz_enc_dictionary_destroy(shared_dict->dict, &channel->glz_data.usr);
|
||||
free(shared_dict);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user