[Spice-devel] [PATCH v2 2/9] worker: do not leak cursor after disconnecting clients
Frediano Ziglio
fziglio at redhat.com
Tue Jan 26 01:44:29 PST 2016
This also prevents future use of a NULL pointer.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/red-worker.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/server/red-worker.c b/server/red-worker.c
index 9a392ec..dd293f7 100644
--- a/server/red-worker.c
+++ b/server/red-worker.c
@@ -455,7 +455,6 @@ static void flush_cursor_commands(RedWorker *worker)
if (spice_get_monotonic_time_ns() >= end_time) {
spice_warning("flush cursor timeout");
cursor_channel_disconnect(worker->cursor_channel);
- worker->cursor_channel = NULL;
} else {
sleep_count++;
usleep(DISPLAY_CLIENT_RETRY_INTERVAL);
--
2.4.3
More information about the Spice-devel
mailing list