mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 11:59:26 +02:00
cocoa: Patch from issue #28510 autorelease pool mem leak fix
git-svn-id: trunk@49633 -
This commit is contained in:
parent
58cbaacbda
commit
b056d5b455
@ -1330,12 +1330,15 @@ begin
|
||||
winnr:=NSWindow.windowNumberAtPoint_belowWindowWithWindowNumber(p,0);
|
||||
windowbelowpoint:=NSApp.windowWithWindowNumber(winnr);
|
||||
if windowbelowpoint=window then
|
||||
begin
|
||||
begin
|
||||
Result:=RecurseSubviews(window.contentView, Point);
|
||||
if Result<>0 then
|
||||
exit;
|
||||
begin
|
||||
pool.release;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
pool.release;
|
||||
end;
|
||||
|
||||
|
@ -417,6 +417,7 @@ var
|
||||
|
||||
if not Assigned(win) then
|
||||
begin
|
||||
pool.release;
|
||||
Result := 0;
|
||||
Exit;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user