IDE: source editor: freeing synedit after processing events

git-svn-id: trunk@18561 -
This commit is contained in:
mattias 2009-02-04 15:51:00 +00:00
parent 1390b6e044
commit 343ae3b671

View File

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