IDE/SynEdit: macro recorder, create with owner (protect from self destruction)

git-svn-id: trunk@35497 -
This commit is contained in:
martin 2012-02-19 22:59:58 +00:00
parent 5ca5747689
commit 4f15b0fa87

View File

@ -8128,7 +8128,7 @@ var
i: TsemChangeReason;
h: TSrcEditMangerHandlerType;
begin
FMacroRecorder := TSynMacroRecorder.Create(nil);
FMacroRecorder := TSynMacroRecorder.Create(self);
FMacroRecorder.OnStateChange := @DoMacroRecorderState;
FMacroRecorder.OnUserCommand := @DoMacroRecorderUserCommand;
FMacroRecorder.RecordCommandID := ecSynMacroRecord;