patched a leak

This commit is contained in:
Basile Burg 2015-09-27 02:17:37 +02:00
parent 4197668f3b
commit caf568c934
1 changed files with 4 additions and 4 deletions

View File

@ -377,10 +377,10 @@ begin
begin
if fDoc.isDSource then
begin
fErrList.Clear;
fTokList.Clear;
lex(fDoc.Lines.Text, fTokList, @lexFindToken);
md := getModuleName(fTokList);
fTokList.Clear;
fErrList.Clear;
end;
if md = '' then md := extractFileName(fDoc.fileName);
pageControl.ActivePage.Caption := md;
@ -414,10 +414,10 @@ begin
md := '';
if fDoc.isDSource then
begin
fTokList.Clear;
fErrList.Clear;
lex(fDoc.Lines.Text, fTokList, @lexFindToken);
md := getModuleName(fTokList);
fTokList.Clear;
fErrList.Clear;
end;
if md = '' then md := extractFileName(fDoc.fileName);
pageControl.ActivePage.Caption := md;