aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/basetypes/MCAutoreleasePool.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/basetypes/MCAutoreleasePool.cc b/src/core/basetypes/MCAutoreleasePool.cc
index 8c351bdf..67e58a78 100644
--- a/src/core/basetypes/MCAutoreleasePool.cc
+++ b/src/core/basetypes/MCAutoreleasePool.cc
@@ -60,13 +60,9 @@ carray * AutoreleasePool::createAutoreleasePoolStackIfNeeded()
return stack;
}
-void AutoreleasePool::destroyAutoreleasePoolStack(void *)
+void AutoreleasePool::destroyAutoreleasePoolStack(void * value)
{
- init();
- carray * stack = (carray *) pthread_getspecific(autoreleasePoolStackKey);
- if (stack == NULL)
- return;
-
+ carray * stack = (carray *) value;
if (carray_count(stack) != 0) {
MCLog("some autoreleasepool have not been released\n");
}