Index: rsvg-private.h =================================================================== --- rsvg-private.h (revision 1173) +++ rsvg-private.h (revision 1174) @@ -182,7 +182,6 @@ GError **error; RsvgDefs *defs; gchar *base_uri; - GMemChunk *state_allocator; PangoContext *pango_context; double dpi_x, dpi_y; RsvgViewBox vb; Index: rsvg-base.c =================================================================== --- rsvg-base.c (revision 1173) +++ rsvg-base.c (revision 1174) @@ -1114,9 +1114,8 @@ static void rsvg_state_free_func (gpointer data, gpointer user_data) { - RsvgDrawingCtx *ctx = (RsvgDrawingCtx *) user_data; rsvg_state_finalize ((RsvgState *) data); - g_mem_chunk_free (ctx->state_allocator, data); + g_slice_free (RsvgState, data); } void @@ -1133,8 +1132,6 @@ if (handle->base_uri) g_free (handle->base_uri); - g_mem_chunk_destroy (handle->state_allocator); - if (handle->pango_context != NULL) g_object_unref (handle->pango_context); @@ -1313,8 +1310,6 @@ ctx->state = NULL; - ctx->state_allocator = g_mem_chunk_create (RsvgState, 256, G_ALLOC_AND_FREE); - ctx->defs = handle->priv->defs; ctx->base_uri = g_strdup (handle->priv->base_uri); ctx->dpi_x = handle->priv->dpi_x; Index: rsvg-styles.c =================================================================== --- rsvg-styles.c (revision 1173) +++ rsvg-styles.c (revision 1174) @@ -1421,7 +1421,7 @@ RsvgState *baseon; baseon = (RsvgState *) g_slist_nth_data (ctx->state, 0); - data = g_chunk_new (RsvgState, ctx->state_allocator); + data = g_slice_new (RsvgState); if (baseon) { int i; @@ -1443,7 +1443,7 @@ rsvg_state_finalize (dead_state); ctx->state = g_slist_delete_link (ctx->state, link); - g_mem_chunk_free (ctx->state_allocator, dead_state); + g_slice_free (RsvgState, dead_state); } /* Index: rsvg-cairo-render.c =================================================================== --- rsvg-cairo-render.c (revision 1173) +++ rsvg-cairo-render.c (revision 1174) @@ -143,9 +143,6 @@ draw->state = NULL; - /* should this be G_ALLOC_ONLY? */ - draw->state_allocator = g_mem_chunk_create (RsvgState, 256, G_ALLOC_AND_FREE); - draw->defs = handle->priv->defs; draw->base_uri = g_strdup (handle->priv->base_uri); draw->dpi_x = handle->priv->dpi_x;