diff options
Diffstat (limited to 'src/spice-util.c')
-rw-r--r-- | src/spice-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spice-util.c b/src/spice-util.c index 84ed94a..fd97ee7 100644 --- a/src/spice-util.c +++ b/src/spice-util.c @@ -153,7 +153,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; @@ -164,7 +164,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 *); |