mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-02 23:56:16 +03:00
Fix memory leak
svn path=/trunk/netsurf/; revision=12630
This commit is contained in:
parent
63cc03a5dc
commit
0979992f83
@ -295,6 +295,7 @@ static void tree_recalculate_node_element(struct tree *tree,
|
||||
LOG(("Tree font width cache hit"));
|
||||
#endif
|
||||
} else {
|
||||
if(cache_text != NULL) free(cache_text);
|
||||
nsfont.font_width(&plot_fstyle,
|
||||
element->text,
|
||||
strlen(element->text),
|
||||
@ -1680,7 +1681,7 @@ static void tree_draw_node_element(struct tree *tree,
|
||||
}
|
||||
|
||||
x += NODE_INSTEP;
|
||||
width -= NODE_INSTEP;
|
||||
// width -= NODE_INSTEP;
|
||||
|
||||
/* fall through */
|
||||
case NODE_ELEMENT_TEXT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user