mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:39:24 +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
|
||||
win.parentWindow.removeChildWindow(win);
|
||||
win.close;
|
||||
win.setContentView(nil);
|
||||
win.release;
|
||||
end;
|
||||
|
||||
TCocoaWSWinControl.DestroyHandle(AWinControl);
|
||||
if Assigned(win) then win.release;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user