mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-09 11:04:03 +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"));
|
LOG(("Tree font width cache hit"));
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
if(cache_text != NULL) free(cache_text);
|
||||||
nsfont.font_width(&plot_fstyle,
|
nsfont.font_width(&plot_fstyle,
|
||||||
element->text,
|
element->text,
|
||||||
strlen(element->text),
|
strlen(element->text),
|
||||||
@ -1680,7 +1681,7 @@ static void tree_draw_node_element(struct tree *tree,
|
|||||||
}
|
}
|
||||||
|
|
||||||
x += NODE_INSTEP;
|
x += NODE_INSTEP;
|
||||||
width -= NODE_INSTEP;
|
// width -= NODE_INSTEP;
|
||||||
|
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case NODE_ELEMENT_TEXT:
|
case NODE_ELEMENT_TEXT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user