mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 17:31:08 +02:00
IDE: fpdoceditor: fixed crash on destroy
git-svn-id: trunk@25699 -
This commit is contained in:
parent
0da4663c8d
commit
924a185cfa
@ -303,8 +303,10 @@ begin
|
||||
if assigned(CodeHelpBoss) then
|
||||
CodeHelpBoss.RemoveAllHandlersOfObject(Self);
|
||||
Application.RemoveAllHandlersOfObject(Self);
|
||||
SourceEditorManagerIntf.UnRegisterChangeEvent(semEditorActivate, @DoEditorUpdate);
|
||||
SourceEditorManagerIntf.UnRegisterChangeEvent(semEditorStatus, @DoEditorUpdate);
|
||||
if SourceEditorManagerIntf<>nil then begin
|
||||
SourceEditorManagerIntf.UnRegisterChangeEvent(semEditorActivate, @DoEditorUpdate);
|
||||
SourceEditorManagerIntf.UnRegisterChangeEvent(semEditorStatus, @DoEditorUpdate);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TFPDocEditor.FormKeyDown(Sender: TObject; var Key: Word;
|
||||
|
Loading…
Reference in New Issue
Block a user