From 640c6833cf6181e1cd06f08cf52b1ab43eb1412e Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 3 Apr 2005 14:17:05 +0000 Subject: [project @ 2005-04-03 14:17:05 by bursa] Use talloc_realloc() instead of realloc() for c->source_data, since that is now managed by talloc. svn path=/import/netsurf/; revision=1593 --- css/css.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'css') diff --git a/css/css.c b/css/css.c index ff5268c68..e1d1199f0 100644 --- a/css/css.c +++ b/css/css.c @@ -90,6 +90,7 @@ #endif #include "netsurf/utils/log.h" #include "netsurf/utils/messages.h" +#include "netsurf/utils/talloc.h" #include "netsurf/utils/url.h" #include "netsurf/utils/utils.h" @@ -384,7 +385,8 @@ bool css_convert(struct content *c, int width, int height) c->data.css.css = malloc(sizeof *c->data.css.css); parser = css_parser_Alloc(malloc); - source_data = realloc(c->source_data, c->source_size + 10); + source_data = talloc_realloc(c, c->source_data, char, + c->source_size + 10); if (!c->data.css.css || !parser || !source_data) { free(c->data.css.css); -- cgit v1.2.3