From c1671f37b1a6b8872d736bfdcee25770dbbd5a06 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 3 Oct 2012 19:24:58 +0100 Subject: reduce talloc usage to box tree layout only --- amiga/dt_anim.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'amiga/dt_anim.c') diff --git a/amiga/dt_anim.c b/amiga/dt_anim.c index 9d79257cc..221f331fb 100644 --- a/amiga/dt_anim.c +++ b/amiga/dt_anim.c @@ -29,7 +29,6 @@ #include "image/bitmap.h" #include "utils/log.h" #include "utils/messages.h" -#include "utils/talloc.h" #include #include @@ -139,14 +138,14 @@ nserror amiga_dt_anim_create(const content_handler *handler, amiga_dt_anim_content *plugin; nserror error; - plugin = talloc_zero(0, amiga_dt_anim_content); + plugin = calloc(1, sizeof(amiga_dt_anim_content)); if (plugin == NULL) return NSERROR_NOMEM; error = content__init(&plugin->base, handler, imime_type, params, llcache, fallback_charset, quirks); if (error != NSERROR_OK) { - talloc_free(plugin); + free(plugin); return error; } @@ -309,7 +308,7 @@ nserror amiga_dt_anim_clone(const struct content *old, struct content **newc) LOG(("amiga_dt_anim_clone")); - plugin = talloc_zero(0, amiga_dt_anim_content); + plugin = calloc(1, sizeof(amiga_dt_anim_content)); if (plugin == NULL) return NSERROR_NOMEM; -- cgit v1.2.3