summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-util.c
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2016-01-13 14:23:12 +0100
committerFabiano FidĂȘncio <fidencio@redhat.com>2016-01-18 11:27:07 +0100
commit5fd23329c4a26c033b5663e4013beaa6d1b35147 (patch)
tree535ee5ec6f60f1603d04d105dca7769f27a9c08c /src/virt-viewer-util.c
parentc2046a2992b04fde2286c6feffdd7f4410087583 (diff)
downloadvirt-viewer-5fd23329c4a26c033b5663e4013beaa6d1b35147.tar.gz
virt-viewer-5fd23329c4a26c033b5663e4013beaa6d1b35147.tar.xz
virt-viewer-5fd23329c4a26c033b5663e4013beaa6d1b35147.zip
Remove GSLice usage
It's being slowly deprecated in glib https://bugzilla.gnome.org/show_bug.cgi?id=754687
Diffstat (limited to 'src/virt-viewer-util.c')
-rw-r--r--src/virt-viewer-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virt-viewer-util.c b/src/virt-viewer-util.c
index f2ccd13..c6bef1b 100644
--- a/src/virt-viewer-util.c
+++ b/src/virt-viewer-util.c
@@ -173,7 +173,7 @@ static WeakHandlerCtx *
whc_new(GObject *instance,
GObject *observer)
{
- WeakHandlerCtx *ctx = g_slice_new0(WeakHandlerCtx);
+ WeakHandlerCtx *ctx = g_new0(WeakHandlerCtx, 1);
ctx->instance = instance;
ctx->observer = observer;
@@ -184,7 +184,7 @@ whc_new(GObject *instance,
static void
whc_free(WeakHandlerCtx *ctx)
{
- g_slice_free(WeakHandlerCtx, ctx);
+ g_free(ctx);
}
static void observer_destroyed_cb(gpointer, GObject *);