summaryrefslogtreecommitdiff
path: root/image/webp.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-10-03 19:24:58 +0100
committerVincent Sanders <vince@netsurf-browser.org>2012-10-03 19:26:17 +0100
commitc1671f37b1a6b8872d736bfdcee25770dbbd5a06 (patch)
tree281e072de977044debdee1dc42efebc5f3c533db /image/webp.c
parent5a2212fda6332980f351a8d8ca03f7d79d8c9712 (diff)
downloadnetsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.gz
netsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.bz2
reduce talloc usage to box tree layout only
Diffstat (limited to 'image/webp.c')
-rw-r--r--image/webp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/image/webp.c b/image/webp.c
index eba155492..080cf8bb0 100644
--- a/image/webp.c
+++ b/image/webp.c
@@ -30,7 +30,6 @@
#include "content/content_protected.h"
#include "utils/log.h"
#include "utils/messages.h"
-#include "utils/talloc.h"
#include "utils/utils.h"
typedef struct webp_content
@@ -49,14 +48,14 @@ static nserror webp_create(const content_handler *handler,
webp_content *webp;
nserror error;
- webp = talloc_zero(0, webp_content);
+ webp = calloc(1, sizeof(webp_content));
if (webp == NULL)
return NSERROR_NOMEM;
error = content__init(&webp->base, handler, imime_type, params,
llcache, fallback_charset, quirks);
if (error != NSERROR_OK) {
- talloc_free(webp);
+ free(webp);
return error;
}
@@ -169,7 +168,7 @@ static nserror webp_clone(const struct content *old, struct content **newc)
webp_content *webp;
nserror error;
- webp = talloc_zero(0, webp_content);
+ webp = calloc(1, sizeof(webp_content));
if (webp == NULL)
return NSERROR_NOMEM;