mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
([NSAutoreleasePool +autoreleaseCountForObject:]): Initialize count to 0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@511 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bb42696426
commit
829722ea98
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ static unsigned pool_count_warning_threshhold = UINT_MAX;
|
||||||
/* This method not in OpenStep */
|
/* This method not in OpenStep */
|
||||||
+ (unsigned) autoreleaseCountForObject: anObject
|
+ (unsigned) autoreleaseCountForObject: anObject
|
||||||
{
|
{
|
||||||
unsigned count;
|
unsigned count = 0;
|
||||||
id pool = current_pool;
|
id pool = current_pool;
|
||||||
while (pool)
|
while (pool)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue