mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-07 01:18:20 +00:00
server/red_worker: don't release self_bitmap unless refcount is 0
RHBZ: 808936
This commit is contained in:
parent
c211774422
commit
6935bd3d60
@ -1695,13 +1695,12 @@ static inline void put_red_drawable(RedWorker *worker, RedDrawable *drawable, ui
|
||||
{
|
||||
QXLReleaseInfoExt release_info_ext;
|
||||
|
||||
if (self_bitmap) {
|
||||
red_put_image(self_bitmap);
|
||||
}
|
||||
if (--drawable->refs) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (self_bitmap) {
|
||||
red_put_image(self_bitmap);
|
||||
}
|
||||
worker->red_drawable_count--;
|
||||
release_info_ext.group_id = group_id;
|
||||
release_info_ext.info = drawable->release_info;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user