diff options
author | Alon Levy <alevy@redhat.com> | 2010-12-15 14:43:45 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-15 14:43:45 +0200 |
commit | 5d2aa8084e4432e6ae496e3e18f14c722041b9ea (patch) | |
tree | deaf15331811bd1f15c52561284afac71fc9d1c5 /common/region.h | |
parent | 5f501a97f7c0ad5d5fb1f961ce5e78eb34f8f9e6 (diff) | |
download | spice-5d2aa8084e4432e6ae496e3e18f14c722041b9ea.tar.gz spice-5d2aa8084e4432e6ae496e3e18f14c722041b9ea.tar.xz spice-5d2aa8084e4432e6ae496e3e18f14c722041b9ea.zip |
server/red_worker: fix worker->drawable_count
drawable_count was becoming negative. It tracks the number of
items in the worker->current_list ring. It was decremented correctly,
but incremented only in several cases. The cases it wasn't incremented
where:
red_current_add_equal found an equivalent drawable
by moving the increment to where the item is added to current_list, in
__current_add_drawable, the accounting remains correct.
This has no affect other then correct accounting, as drawable_count isn't
used for anything.
Diffstat (limited to 'common/region.h')
0 files changed, 0 insertions, 0 deletions