diff --git a/ide/sourcesyneditor.pas b/ide/sourcesyneditor.pas index 9ba5675a9c..8be0552177 100644 --- a/ide/sourcesyneditor.pas +++ b/ide/sourcesyneditor.pas @@ -497,7 +497,9 @@ end; destructor TIDESynEditor.Destroy; begin inherited Destroy; + {$IFDEF WithSynInfoView} FreeAndNil(FTopInfoDisplay); + {$ENDIF} end; function TIDESynEditor.TextIndexToViewPos(aTextIndex: Integer): Integer;