lcl: fix memory leak in translations unit

git-svn-id: trunk@17677 -
This commit is contained in:
paul 2008-12-04 01:45:00 +00:00
parent 758072e721
commit 5775f67b6e

View File

@ -4,7 +4,7 @@
* *
* This file is part of the Lazarus Component Library (LCL) *
* *
* See the file COPYING.modifiedLGPL.txt, included in this distribution, *
* See the file COPYING.modifiedLGPL.txt, included in this distribution, *
* for details about the copyright. *
* *
* This program is distributed in the hope that it will be useful, *
@ -351,7 +351,7 @@ begin
po:=nil;
try
po:=TPOFile.Create(AFilename);
result:=TranslateUnitResourceStrings(ResUnitName,TPOFile.Create(AFilename));
result:=TranslateUnitResourceStrings(ResUnitName,po);
finally
po.free;
end;