mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
IDE: source editor: freeing synedit after processing events
git-svn-id: trunk@18561 -
This commit is contained in:
parent
1390b6e044
commit
343ae3b671
@ -1068,10 +1068,10 @@ begin
|
||||
if SourceEditorMarks<>nil then
|
||||
SourceEditorMarks.DeleteAllForEditor(FEditor);
|
||||
TSourceNotebook(FAOwner).FSourceEditorList.Remove(Self);
|
||||
FreeAndNil(FEditor);
|
||||
end else begin
|
||||
FEditor:=nil;
|
||||
// free the synedit control after processing the events
|
||||
Application.ReleaseComponent(FEditor);
|
||||
end;
|
||||
FEditor:=nil;
|
||||
//writeln('TSourceEditor.Destroy B ');
|
||||
inherited Destroy;
|
||||
//writeln('TSourceEditor.Destroy END ');
|
||||
|
Loading…
Reference in New Issue
Block a user