mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 00:02:03 +02:00
GTK3: Fixed access violation issue in Gtk3Page.
The widget was freed and assigned nil pointer before it was unreferenced which may lead to occasional access violation on application shutdown. This fix is related to #40713.
This commit is contained in:
parent
db0a10f032
commit
e5ba0c58f1
@ -4525,9 +4525,9 @@ end;
|
||||
|
||||
procedure TGtk3Page.DestroyWidget;
|
||||
begin
|
||||
inherited DestroyWidget;
|
||||
// unref it to allow it to be destroyed
|
||||
FPageLabel^.unref;
|
||||
inherited DestroyWidget;
|
||||
end;
|
||||
|
||||
function TGtk3Page.getClientOffset: TPoint;
|
||||
|
Loading…
Reference in New Issue
Block a user