From: Yonit Halperin <yhalperi@xxxxxxxxxx> 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 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel