[Spice-devel] [PATCH 20/26] server/red_channel: reset send_data.item to NULL after release
Marc-André Lureau
marcandre.lureau at gmail.com
Mon Feb 14 17:29:06 PST 2011
See comment in 7/23 of previous patch series.
On Fri, Feb 11, 2011 at 6:49 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
> server/red_channel.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/server/red_channel.c b/server/red_channel.c
> index 0921388..4d6a147 100644
> --- a/server/red_channel.c
> +++ b/server/red_channel.c
> @@ -681,6 +681,7 @@ void red_channel_pipe_clear(RedChannel *channel)
> ASSERT(channel);
> if (channel->send_data.item) {
> red_channel_release_item(channel, channel->send_data.item, TRUE);
> + channel->send_data.item = NULL;
> }
> while ((item = (PipeItem *)ring_get_head(&channel->pipe))) {
> ring_remove(&item->link);
> --
> 1.7.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>
--
Marc-André Lureau
More information about the Spice-devel
mailing list