Skip to content

Commit

Permalink
Added missing variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchaefer committed Sep 24, 2019
1 parent d7c083a commit 72543fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/UIRibbon.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,8 @@ function TUIRibbon.OnCreateUICommand(CommandId: UInt32; TypeId: _UICommandType;
end;

function TUIRibbon.OnDestroyUICommand(CommandId: UInt32; TypeId: _UICommandType; const CommandHandler: IUICommandHandler): HRESULT;
var
lCommand: TUICommand;
begin
//FCommands.Remove(CommandId); <- Code commented, because we might still have references to the command at this point. Since it is not ref-counted, we must not destroy it yet.
if Assigned(FOnCommandDestroy) and TryGetCommand(CommandId, lCommand) then
Expand Down

0 comments on commit 72543fb

Please sign in to comment.