[PATCH 2/5] worker: do not leak cursor after disconnecting clients

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This also prevents future use of a NULL pointer.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]