mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-02-08 05:57:29 +03:00
Remove GSLice usage
It's being slowly deprecated in glib https://bugzilla.gnome.org/show_bug.cgi?id=754687
This commit is contained in:
parent
c2046a2992
commit
5fd23329c4
@ -1149,7 +1149,7 @@ bind_with_closures_free_func (gpointer data)
|
||||
if (t_data->transform_from_closure != NULL)
|
||||
g_closure_unref (t_data->transform_from_closure);
|
||||
|
||||
g_slice_free (TransformData, t_data);
|
||||
g_free (t_data);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1191,7 +1191,7 @@ g_object_bind_property_with_closures (gpointer source,
|
||||
{
|
||||
TransformData *data;
|
||||
|
||||
data = g_slice_new0 (TransformData);
|
||||
data = g_new0 (TransformData, 1);
|
||||
|
||||
if (transform_to != NULL)
|
||||
{
|
||||
|
@ -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 *);
|
||||
|
Loading…
x
Reference in New Issue
Block a user