[Spice-devel] [PATCH v2 02/13] Bug fix: delete the reader entry after queueing an event, not before

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Fri Oct 9 09:15:55 PDT 2015


From: Jeremy White <jwhite at codeweavers.com>

As far as I can tell, the vreader_remove_reader function is not presently in
use anywhere; I have an upcoming patch set that uses it.

Signed-off-by: Jeremy White <jwhite at codeweavers.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 src/vreader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vreader.c b/src/vreader.c
index 5029f76..bd662ac 100644
--- a/src/vreader.c
+++ b/src/vreader.c
@@ -533,8 +533,8 @@ vreader_remove_reader(VReader *reader)
     }
     vreader_dequeue(vreader_list, current_entry);
     vreader_list_unlock();
-    vreader_list_entry_delete(current_entry);
     vevent_queue_vevent(vevent_new(VEVENT_READER_REMOVE, reader, NULL));
+    vreader_list_entry_delete(current_entry);
     return VREADER_OK;
 }
 
-- 
2.4.3



More information about the Spice-devel mailing list