[Spice-devel] [PATCH spice-server v2 11/23] Use GLib memory functions for SpiceChannelEventInfo
Frediano Ziglio
fziglio at redhat.com
Wed Sep 20 07:51:04 UTC 2017
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);
}
}
--
2.13.5
More information about the Spice-devel
mailing list