mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 18:17:18 +02:00
IDE: freeing codetools buffers on closing file, bug #12183
git-svn-id: trunk@16701 -
This commit is contained in:
parent
b71bd84f2e
commit
890fb71335
@ -969,7 +969,7 @@ begin
|
||||
end;
|
||||
|
||||
function TCodeBuffer.FileOnDiskNeedsUpdate: boolean;
|
||||
// file on disk needs update, if file is modified or does not exist
|
||||
// file on disk needs update, if memory is modified or file does not exist
|
||||
begin
|
||||
if LoadDateValid then
|
||||
Result:=Modified or (FFileChangeStep<>ChangeStep)
|
||||
|
@ -7289,6 +7289,10 @@ begin
|
||||
Result:=mrOk;
|
||||
end;
|
||||
|
||||
// free sources
|
||||
if (ActiveUnitInfo.Source<>nil) then
|
||||
ActiveUnitInfo.Source.IsDeleted:=true;
|
||||
|
||||
// close form soft (keep it if used by another component)
|
||||
CloseUnitComponent(ActiveUnitInfo,[]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user