[Spice-devel] [PATCH spice-server v2 19/23] inputs-channel: Use GLib memory functions
Frediano Ziglio
fziglio at redhat.com
Wed Sep 20 07:51:12 UTC 2017
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/inputs-channel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/inputs-channel.c b/server/inputs-channel.c
index 8e17cc724..b8944cb0f 100644
--- a/server/inputs-channel.c
+++ b/server/inputs-channel.c
@@ -77,7 +77,7 @@ static SpiceTabletInstance* inputs_channel_get_tablet(InputsChannel *inputs);
static SpiceKbdState* spice_kbd_state_new(RedsState *reds)
{
- SpiceKbdState *st = spice_new0(SpiceKbdState, 1);
+ SpiceKbdState *st = g_new0(SpiceKbdState, 1);
st->reds = reds;
return st;
}
@@ -93,7 +93,7 @@ struct SpiceMouseState {
static SpiceMouseState* spice_mouse_state_new(void)
{
- return spice_new0(SpiceMouseState, 1);
+ return g_new0(SpiceMouseState, 1);
}
struct SpiceTabletState {
@@ -102,7 +102,7 @@ struct SpiceTabletState {
static SpiceTabletState* spice_tablet_state_new(void)
{
- return spice_new0(SpiceTabletState, 1);
+ return g_new0(SpiceTabletState, 1);
}
RedsState* spice_tablet_state_get_server(SpiceTabletState *st)
--
2.13.5
More information about the Spice-devel
mailing list