From 9c1a04e279f691a9db4b338fc0f52030cc439a13 Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sat, 6 Oct 2012 16:42:58 +0100 Subject: Fix frame name allocation. --- render/box_construct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/box_construct.c b/render/box_construct.c index 44a5351ae..26d9b54ab 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -2284,7 +2284,7 @@ bool box_create_frameset(struct content_html_frames *f, dom_node *n, /* fill in specified values */ err = dom_element_get_attribute(c, kstr_name, &s); if (err == DOM_NO_ERR && s != NULL) { - frame->name = talloc_strdup(content, + frame->name = talloc_strdup(content->bctx, dom_string_data(s)); dom_string_unref(s); } -- cgit v1.2.3