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 /riscos/content-handlers/artworks.c | |
parent | 5a2212fda6332980f351a8d8ca03f7d79d8c9712 (diff) | |
download | netsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.gz netsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.bz2 |
reduce talloc usage to box tree layout only
Diffstat (limited to 'riscos/content-handlers/artworks.c')
-rw-r--r-- | riscos/content-handlers/artworks.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/riscos/content-handlers/artworks.c b/riscos/content-handlers/artworks.c index b9c5f3378..66808d42a 100644 --- a/riscos/content-handlers/artworks.c +++ b/riscos/content-handlers/artworks.c @@ -39,7 +39,6 @@ #include "riscos/wimputils.h" #include "utils/log.h" #include "utils/messages.h" -#include "utils/talloc.h" #include "utils/utils.h" #define AWRender_FileInitAddress 0x46080 @@ -140,14 +139,14 @@ nserror artworks_create(const content_handler *handler, artworks_content *aw; nserror error; - aw = talloc_zero(0, artworks_content); + aw = calloc(1, sizeof(artworks_content)); if (aw == NULL) return NSERROR_NOMEM; error = content__init(&aw->base, handler, imime_type, params, llcache, fallback_charset, quirks); if (error != NSERROR_OK) { - talloc_free(aw); + free(aw); return error; } @@ -406,7 +405,7 @@ nserror artworks_clone(const struct content *old, struct content **newc) artworks_content *aw; nserror error; - aw = talloc_zero(0, artworks_content); + aw = calloc(1, sizeof(artworks_content)); if (aw == NULL) return NSERROR_NOMEM; |