Fix memory leak: Unref some stuff if we're not showing the tooltip.

svn path=/trunk/; revision=7667
This commit is contained in:
Iain Holmes
2001-01-20 16:31:08 +00:00
parent 50b55e669f
commit 91e979816f

View File

@ -1194,6 +1194,8 @@ ect_show_tooltip (ECellView *ecell_view,
if (!cut_off) {
tooltip->timer = 0;
unref_lines (&cell);
unbuild_current_cell (&cell);
return;
}
@ -2215,7 +2217,6 @@ split_into_lines (CurrentCell *cell)
linebreaks = cell->breaks;
/* Check if already split. */
linebreaks->lines = NULL;
linebreaks->num_lines = 0;