fpspreadsheet: Fix memory leak if writing an empty string to a worksheet by calling WriteUTF8Text

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4388 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2015-11-13 20:23:03 +00:00
parent 9c774a0c9b
commit 93c48a5b99

View File

@ -3779,7 +3779,7 @@ begin
begin begin
r := ACell^.Row; r := ACell^.Row;
c := ACell^.Col; c := ACell^.Col;
RemoveCell(r, c); RemoveAndFreeCell(r, c);
ChangedCell(r, c); ChangedCell(r, c);
end else end else
WriteBlank(ACell); WriteBlank(ACell);