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

Submitted by Alon Levy on May 15, 2012, 10:58 a.m.

Details

Message ID 1337079514-25271-7-git-send-email-alevy@redhat.com
State Accepted
Commit cc1fd8eae7a126d9320c4432eb6ebc54b1ffc201
Headers show

Not browsing as part of any series.

Commit Message

Alon Levy May 15, 2012, 10:58 a.m.
---
 server/red_worker.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

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)