summaryrefslogtreecommitdiff
path: root/image/video.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/video.c
parent5a2212fda6332980f351a8d8ca03f7d79d8c9712 (diff)
downloadnetsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.gz
netsurf-c1671f37b1a6b8872d736bfdcee25770dbbd5a06.tar.bz2
reduce talloc usage to box tree layout only
Diffstat (limited to 'image/video.c')
-rw-r--r--image/video.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/image/video.c b/image/video.c
index 2255208c3..1cbbeebf0 100644
--- a/image/video.c
+++ b/image/video.c
@@ -21,7 +21,6 @@
#include "content/content_factory.h"
#include "content/content_protected.h"
#include "image/video.h"
-#include "utils/talloc.h"
typedef struct nsvideo_content {
struct content base;
@@ -76,26 +75,26 @@ static nserror nsvideo_create(const content_handler *handler,
nserror error;
GstBus *bus;
- video = talloc_zero(0, nsvideo_content);
+ video = calloc(1, sizeof(nsvideo_content));
if (video == NULL)
return NSERROR_NOMEM;
error = content__init(&video->base, handler, imime_type, params,
llcache, fallback_charset, quirks);
if (error != NSERROR_OK) {
- talloc_free(video);
+ free(video);
return error;
}
error = llcache_handle_force_stream(llcache);
if (error != NSERROR_OK) {
- talloc_free(video);
+ free(video);
return error;
}
video->playbin = gst_element_factory_make("playbin2", NULL);
if (video->playbin == NULL) {
- talloc_free(video);
+ free(video);
return NSERROR_NOMEM;
}