mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 06:09:30 +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
1ceeedf344
commit
1767a4009b
@ -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