summaryrefslogtreecommitdiff
path: root/amiga/plugin_hack.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 /amiga/plugin_hack.c
parent5a2212fda6332980f351a8d8ca03f7d79d8c9712 (diff)
downloadnetsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.gz
netsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.bz2
reduce talloc usage to box tree layout only
Diffstat (limited to 'amiga/plugin_hack.c')
-rw-r--r--amiga/plugin_hack.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c
index 89e80e3e4..830d2f614 100644
--- a/amiga/plugin_hack.c
+++ b/amiga/plugin_hack.c
@@ -27,7 +27,6 @@
#include "desktop/plotters.h"
#include "utils/log.h"
#include "utils/messages.h"
-#include "utils/talloc.h"
#include <proto/dos.h>
#include <proto/exec.h>
@@ -101,14 +100,14 @@ nserror amiga_plugin_hack_create(const content_handler *handler,
amiga_plugin_hack_content *plugin;
nserror error;
- plugin = talloc_zero(0, amiga_plugin_hack_content);
+ plugin = calloc(1, amiga_plugin_hack_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;
}
@@ -208,7 +207,7 @@ nserror amiga_plugin_hack_clone(const struct content *old, struct content **newc
LOG(("amiga_plugin_hack_clone"));
- plugin = talloc_zero(0, amiga_plugin_hack_content);
+ plugin = calloc(1, sizeof(amiga_plugin_hack_content));
if (plugin == NULL)
return NSERROR_NOMEM;