mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 09:09:17 +02:00
cocoa: disconnecting window content from window for a better reference release
git-svn-id: trunk@61033 -
This commit is contained in:
parent
fa7b48de3b
commit
6a5aa14a72
@ -729,10 +729,11 @@ begin
|
|||||||
if Assigned(win.parentWindow) then
|
if Assigned(win.parentWindow) then
|
||||||
win.parentWindow.removeChildWindow(win);
|
win.parentWindow.removeChildWindow(win);
|
||||||
win.close;
|
win.close;
|
||||||
|
win.setContentView(nil);
|
||||||
|
win.release;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TCocoaWSWinControl.DestroyHandle(AWinControl);
|
TCocoaWSWinControl.DestroyHandle(AWinControl);
|
||||||
if Assigned(win) then win.release;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user