[Solved] Memory Leak when writing null string - FPSpreadsheet lazarus / 49-FPSpreadsheet ---------------------------------------------------------------------- Edson · 2016-03-02 21:38 Hi, I've realized, that when writing an empty string in a a new cell, generate a memory leak: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   w := TsWorkbook.Create;  h := w.AddWorksheet('Sheet');  h.WriteUTF8Text(0, 0, '');  w.Destroy; Is this normal? Thanks. ---------------------------------------------------------------------- wp · 2016-03-02 22:22 This has been fixed some time ago, r4388. If you do not want to update to trunk you may patch it easily by yourself: Open fpspreadsheet.pas.Find the procedure "TsWorksheet.WriteText"Scroll down a bit and find this code:  "RemoveCell(r, c);"Replace it by "RemoveAndFreeCell(r, c);" ---------------------------------------------------------------------- Edson · 2016-03-02 22:49 As usually, solved in a short time.  Thanks.