mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 07:19:22 +02:00
Gtk2: fixed crash when IDE closing
git-svn-id: trunk@25222 -
This commit is contained in:
parent
da949d64ae
commit
16e21d570d
@ -1114,7 +1114,7 @@ begin
|
|||||||
if Info = nil then // this widget is already destroyed
|
if Info = nil then // this widget is already destroyed
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
if (Info^.LCLObject <> TObject(Data)) then // this LCLObject does not use this widget anymore
|
if (Data = nil) or (Info^.LCLObject <> TObject(Data)) then // this LCLObject does not use this widget anymore
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
if (TObject(Data) is TWinControl) then
|
if (TObject(Data) is TWinControl) then
|
||||||
|
Loading…
Reference in New Issue
Block a user