[Spice-devel] [PATCH 2/3] server/red_worker: display channel: release PIPE_ITEM_TYPE_VERB

Alon Levy alevy at redhat.com
Wed May 4 08:51:54 PDT 2011


We didn't expect PIPE_ITEM_TYPE_VERB in display_channel_release_item
even thought we send them. fix that. Fixes panic when doing frequent
connect/disconnect of client.
---
 server/red_worker.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index b8d6a96..5b679ff 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -9140,6 +9140,9 @@ static void display_channel_release_item(RedChannel *channel, PipeItem *item, in
     case PIPE_ITEM_TYPE_IMAGE:
         release_image_item((ImageItem *)item);
         break;
+    case PIPE_ITEM_TYPE_VERB:
+        /* we free it when sending */
+        break;
     default:
         PANIC("invalid item type");
     }
-- 
1.7.5



More information about the Spice-devel mailing list