[Spice-devel] [PATCH v2 6/7] server/red_worker/put_red_drawable: s/drawable/red_drawable/

Alon Levy alevy at redhat.com
Tue May 15 03:58:33 PDT 2012


---
 server/red_worker.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index f0192a3..9c1266c 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -1690,12 +1690,12 @@ static RedDrawable *ref_red_drawable(RedDrawable *drawable)
 }
 
 
-static inline void put_red_drawable(RedWorker *worker, RedDrawable *drawable, uint32_t group_id,
-                                     SpiceImage *self_bitmap_image)
+static inline void put_red_drawable(RedWorker *worker, RedDrawable *red_drawable,
+                                    uint32_t group_id, SpiceImage *self_bitmap_image)
 {
     QXLReleaseInfoExt release_info_ext;
 
-    if (--drawable->refs) {
+    if (--red_drawable->refs) {
         return;
     }
     if (self_bitmap_image) {
@@ -1703,10 +1703,10 @@ static inline void put_red_drawable(RedWorker *worker, RedDrawable *drawable, ui
     }
     worker->red_drawable_count--;
     release_info_ext.group_id = group_id;
-    release_info_ext.info = drawable->release_info;
+    release_info_ext.info = red_drawable->release_info;
     worker->qxl->st->qif->release_resource(worker->qxl, release_info_ext);
-    red_put_drawable(drawable);
-    free(drawable);
+    red_put_drawable(red_drawable);
+    free(red_drawable);
 }
 
 static void remove_depended_item(DependItem *item)
-- 
1.7.10.1



More information about the Spice-devel mailing list