diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2016-01-14 17:08:18 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-01-14 16:39:36 +0000 |
commit | 5a603f2b63a276b27db254c156b0685ea52f5e52 (patch) | |
tree | 14c574da5ab8419a9d8c196bb7dfed5c3204c705 /server/red-replay-qxl.c | |
parent | 400a5d13cff644369930a9c8519e288465ccab4e (diff) |
Remove GSlice use
It's being slowly deprecated in glib
https://bugzilla.gnome.org/show_bug.cgi?id=754687
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/red-replay-qxl.c')
-rw-r--r-- | server/red-replay-qxl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/red-replay-qxl.c b/server/red-replay-qxl.c index 95a9fdd0..8e0b28cd 100644 --- a/server/red-replay-qxl.c +++ b/server/red-replay-qxl.c @@ -1134,7 +1134,7 @@ SPICE_GNUC_VISIBLE QXLCommandExt* spice_replay_next_cmd(SpiceReplay *replay, replay_handle_dev_input(worker, replay, type); } } - cmd = g_slice_new(QXLCommandExt); + cmd = g_new(QXLCommandExt, 1); cmd->cmd.type = type; cmd->group_id = 0; spice_debug("command %"PRIu64", %d\r", timestamp, cmd->cmd.type); @@ -1195,7 +1195,7 @@ SPICE_GNUC_VISIBLE void spice_replay_free_cmd(SpiceReplay *replay, QXLCommandExt break; } - g_slice_free(QXLCommandExt, cmd); + g_free(cmd); } /* caller is incharge of closing the replay when done and releasing the SpiceReplay |