mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-15 11:59:20 +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
@ -1333,9 +1333,12 @@ begin
|
|||||||
begin
|
begin
|
||||||
Result:=RecurseSubviews(window.contentView, Point);
|
Result:=RecurseSubviews(window.contentView, Point);
|
||||||
if Result<>0 then
|
if Result<>0 then
|
||||||
|
begin
|
||||||
|
pool.release;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
pool.release;
|
pool.release;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -417,6 +417,7 @@ var
|
|||||||
|
|
||||||
if not Assigned(win) then
|
if not Assigned(win) then
|
||||||
begin
|
begin
|
||||||
|
pool.release;
|
||||||
Result := 0;
|
Result := 0;
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user