mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:29:31 +02:00
cocoa: No longer needed. App meanwhile closing without memory leaks. Global NSAutoReleasePool in init / finalization is dangerous for libraries and leads to crash during host shut down.
git-svn-id: trunk@54093 -
This commit is contained in:
parent
01a2998a5a
commit
0570e97c82
@ -190,16 +190,12 @@ uses
|
|||||||
// the implementation of the extra LCL interface methods
|
// the implementation of the extra LCL interface methods
|
||||||
{$I cocoalclintf.inc}
|
{$I cocoalclintf.inc}
|
||||||
|
|
||||||
var
|
|
||||||
AppReleasePool: NSAutoReleasePool;
|
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
// {$I Cocoaimages.lrs}
|
// {$I Cocoaimages.lrs}
|
||||||
AppReleasePool := NSAutoreleasePool.alloc.init;
|
|
||||||
InternalInit;
|
InternalInit;
|
||||||
|
|
||||||
finalization
|
finalization
|
||||||
InternalFinal;
|
InternalFinal;
|
||||||
AppReleasePool.release;
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user