Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- 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); } } -- 2.13.5 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel