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

@ -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;