diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-08-29 12:12:04 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2011-08-29 12:12:04 +0200 |
commit | c4e17538944000a6d1efb4fe16def352ea9f0e75 (patch) | |
tree | 28cd3f1e0efd8526dfd884803dba3c318b2642d9 /docview/components/richtext | |
parent | 37e4358e811eb1bd46daac90b6f4013a2b24161a (diff) | |
download | fpGUI-c4e17538944000a6d1efb4fe16def352ea9f0e75.tar.xz |
richview: fixed another memory leak.
Diffstat (limited to 'docview/components/richtext')
-rw-r--r-- | docview/components/richtext/RichTextLayoutUnit.pas | 3 |
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; |