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/icon.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/icon.c')
-rw-r--r-- | amiga/icon.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/icon.c b/amiga/icon.c index 87a8a5c18..641095bc4 100644 --- a/amiga/icon.c +++ b/amiga/icon.c @@ -44,7 +44,6 @@ #include "content/content_protected.h" #include "utils/log.h" #include "utils/messages.h" -#include "utils/talloc.h" #include "utils/utils.h" #include "utils/url.h" @@ -108,14 +107,14 @@ nserror amiga_icon_create(const content_handler *handler, amiga_icon_content *ai_content; nserror error; - ai_content = talloc_zero(0, amiga_icon_content); + ai_content = calloc(1, sizeof(amiga_icon_content)); if (ai_content == NULL) return NSERROR_NOMEM; error = content__init(&ai_content->base, handler, imime_type, params, llcache, fallback_charset, quirks); if (error != NSERROR_OK) { - talloc_free(ai_content); + free(ai_content); return error; } @@ -285,7 +284,7 @@ nserror amiga_icon_clone(const struct content *old, struct content **newc) amiga_icon_content *ai; nserror error; - ai = talloc_zero(0, amiga_icon_content); + ai = calloc(1, sizeof(amiga_icon_content)); if (ai == NULL) return NSERROR_NOMEM; |