[Spice-devel] [PATCH spice-server v2 11/23] Use GLib memory functions for SpiceChannelEventInfo
Jonathon Jongsma
jjongsma at redhat.com
Fri Sep 22 20:58:34 UTC 2017
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
On Wed, 2017-09-20 at 08:51 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/reds-stream.c | 2 +-
> server/reds.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/server/reds-stream.c b/server/reds-stream.c
> index d4925712f..817564e21 100644
> --- a/server/reds-stream.c
> +++ b/server/reds-stream.c
> @@ -417,7 +417,7 @@ RedsStream *reds_stream_new(RedsState *reds, int
> socket)
>
> stream = g_malloc0(sizeof(RedsStream) +
> sizeof(RedsStreamPrivate));
> stream->priv = (RedsStreamPrivate *)(stream+1);
> - stream->priv->info = spice_new0(SpiceChannelEventInfo, 1);
> + stream->priv->info = g_new0(SpiceChannelEventInfo, 1);
> stream->priv->reds = reds;
> stream->priv->core = reds_get_core_interface(reds);
> reds_stream_set_socket(stream, socket);
> diff --git a/server/reds.c b/server/reds.c
> index ddc933524..5b50bc30f 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -325,7 +325,7 @@ void reds_handle_channel_event(RedsState *reds,
> int event, SpiceChannelEventInfo
> reds->core.channel_event(&reds->core, event, info);
>
> if (event == SPICE_CHANNEL_EVENT_DISCONNECTED) {
> - free(info);
> + g_free(info);
> }
> }
>
More information about the Spice-devel
mailing list