LCL Carbon: applied patch #0011973: Crash in readonly text edits from C Western

git-svn-id: trunk@16254 -
This commit is contained in:
tombo 2008-08-26 15:17:18 +00:00
parent cc9a5809df
commit 82baccc130

View File

@ -667,8 +667,10 @@ end;
------------------------------------------------------------------------------}
procedure TCarbonComboBox.DestroyWidget;
begin
if FReadOnly then DisposeMenu(FPopupMenu);
if FTimer.Enabled then DropDownTimer(nil);
if FReadOnly then
DisposeMenu(FPopupMenu)
else if FTimer.Enabled then
DropDownTimer(nil);
FTimer.Free;
inherited DestroyWidget;