summaryrefslogtreecommitdiffstats
path: root/server/red_channel.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2011-02-27 13:33:28 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2011-02-27 18:26:19 +0100
commit07d6dd61080efdfe97fbce7a9a12abb7f315bdc3 (patch)
tree3add7ab305c396aa3b87491245dd943d0067bb05 /server/red_channel.c
parentfca602124ded4b3333344a8737a08751635bacdb (diff)
downloadspice-07d6dd61080efdfe97fbce7a9a12abb7f315bdc3.tar.gz
spice-07d6dd61080efdfe97fbce7a9a12abb7f315bdc3.tar.xz
spice-07d6dd61080efdfe97fbce7a9a12abb7f315bdc3.zip
server: use reds_{link,stream}_free()
Be carefull removing the watch before, like __release_link https://bugs.freedesktop.org/show_bug.cgi?id=34795
Diffstat (limited to 'server/red_channel.c')
-rw-r--r--server/red_channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index 5fcbda4e..10bc054f 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -371,8 +371,7 @@ void red_channel_destroy(RedChannel *channel)
return;
}
red_channel_pipe_clear(channel);
- channel->core->watch_remove(channel->peer->watch);
- channel->peer->cb_free(channel->peer);
+ reds_stream_free(channel->peer);
spice_marshaller_destroy(channel->send_data.marshaller);
free(channel);
}