[Spice-devel] [PATCH] channel-display: destroy_stream: fail if streams is NULL

Alon Levy alevy at redhat.com
Fri Jun 10 10:57:04 PDT 2011


---
 gtk/channel-display.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gtk/channel-display.c b/gtk/channel-display.c
index 5273091..3775103 100644
--- a/gtk/channel-display.c
+++ b/gtk/channel-display.c
@@ -1048,6 +1048,7 @@ static void destroy_stream(SpiceChannel *channel, int id)
     display_stream *st;
 
     g_return_if_fail(c != NULL);
+    g_return_if_fail(c->streams != NULL);
 
     st = c->streams[id];
     if (!st)
-- 
1.7.5.2



More information about the Spice-devel mailing list