mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 23:09:43 +03:00
[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
This commit is contained in:
parent
a7a0048c0d
commit
640c6833cf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user