summaryrefslogtreecommitdiff
path: root/obrender/instance.c
diff options
context:
space:
mode:
Diffstat (limited to 'obrender/instance.c')
-rw-r--r--obrender/instance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/obrender/instance.c b/obrender/instance.c
index b867815c..af0420ae 100644
--- a/obrender/instance.c
+++ b/obrender/instance.c
@@ -59,7 +59,7 @@ RrInstance* RrInstanceNew (Display *display, gint screen)
{
g_type_init(); /* supposedly needed for pango but seems to work without */
- definst = g_new (RrInstance, 1);
+ definst = g_slice_new(RrInstance);
definst->display = display;
definst->screen = screen;
@@ -214,7 +214,7 @@ void RrInstanceFree (RrInstance *inst)
g_free(inst->pseudo_colors);
g_hash_table_destroy(inst->color_hash);
g_object_unref(inst->pango);
- g_free(inst);
+ g_slice_free(RrInstance, inst);
}
}