diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-10-03 19:24:58 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-10-03 19:26:17 +0100 |
commit | c1671f37b1a6b8872d736bfdcee25770dbbd5a06 (patch) | |
tree | 281e072de977044debdee1dc42efebc5f3c533db /amiga/dt_anim.c | |
parent | 5a2212fda6332980f351a8d8ca03f7d79d8c9712 (diff) | |
download | netsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.gz netsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.bz2 |
reduce talloc usage to box tree layout only
Diffstat (limited to 'amiga/dt_anim.c')
-rw-r--r-- | amiga/dt_anim.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 <proto/datatypes.h> #include <proto/dos.h> @@ -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; |