[Spice-devel] [PATCH] server/red_worker: don't release self_bitmap unless refcount is 0
Alon Levy
alevy at redhat.com
Sun May 13 04:40:12 PDT 2012
From: Yonit Halperin <yhalperi at redhat.com>
RHBZ: 808936
---
server/red_worker.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/server/red_worker.c b/server/red_worker.c
index 473d0d6..60f30d3 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -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;
--
1.7.10.1
More information about the Spice-devel
mailing list