summaryrefslogtreecommitdiff
path: root/docview/components
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-29 12:12:04 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-08-29 12:12:04 +0200
commitc4e17538944000a6d1efb4fe16def352ea9f0e75 (patch)
tree28cd3f1e0efd8526dfd884803dba3c318b2642d9 /docview/components
parent37e4358e811eb1bd46daac90b6f4013a2b24161a (diff)
downloadfpGUI-c4e17538944000a6d1efb4fe16def352ea9f0e75.tar.xz
richview: fixed another memory leak.
Diffstat (limited to 'docview/components')
-rw-r--r--docview/components/richtext/RichTextLayoutUnit.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/docview/components/richtext/RichTextLayoutUnit.pas b/docview/components/richtext/RichTextLayoutUnit.pas
index c44d14a6..606b7805 100644
--- a/docview/components/richtext/RichTextLayoutUnit.pas
+++ b/docview/components/richtext/RichTextLayoutUnit.pas
@@ -375,7 +375,8 @@ ProfileEvent('DEBUG: TRichTextLayout.Layout >>>>');
teTextEnd:
begin
DoLine( P, NextP, WordStartX + WordX );
- // end of text, done
+ // end of text, so it is safe to free CurrentLine created in DoLine()
+ CurrentLine.Free;
break;
end;