summaryrefslogtreecommitdiff
path: root/obrender/instance.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-02-12 14:13:32 -0500
committerDana Jansens <danakj@orodu.net>2010-02-12 14:13:32 -0500
commite61fd8874a8352fb5fa1c4b2ab84d29679fa7b0c (patch)
tree2dbb90847597ead74c48c71d0a8e46a1cc711f67 /obrender/instance.c
parent890e13b919892887b773462bb866e849e0cb4d91 (diff)
use g_slice_new() instead of g_new() part 4
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);
}
}