summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/tree.c b/desktop/tree.c
index 6c8071d90..aae76fb4e 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -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: