Re: [AD] [ alleg-Bugs-2986726 ] Nested autorelease pools ok in native iphone image loader? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: Coordination of admins/developers of the game programming library Allegro <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] [ alleg-Bugs-2986726 ] Nested autorelease pools ok in native iphone image loader?
- From: Evert Glebbeek <eglebbk@xxxxxxxxxx>
- Date: Tue, 13 Apr 2010 16:30:59 -0400
On 13 Apr 2010, at 16:26 , SourceForge.net wrote:
> The native iphone image loader is leaking memory without an autorelease pool. I will be adding a short-lived autorelease pool to the loading function, but this fix may cause problems if a user calls the function from a thread that already has an autorelease pool. Are autorelease pools nestable?
Yes.
The native dialog addon has had its own autorelease pool from the beginning because it could (should) be called from another thread. It still does.
Evert