Commit 8e5f637b authored by aestes@apple.com's avatar aestes@apple.com
Browse files

Don't leak objects in HardAutorelease when OBJC_NO_GC is undefined but

Objective-C GC is disabled at runtime.

Reviewed by Darin Adler.

* wtf/ObjcRuntimeExtras.h:
(HardAutorelease):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 29d9c7e2
2013-08-26 Andy Estes <aestes@apple.com>
Don't leak objects in HardAutorelease when OBJC_NO_GC is undefined but
Objective-C GC is disabled at runtime.
Reviewed by Darin Adler.
* wtf/ObjcRuntimeExtras.h:
(HardAutorelease):
2013-08-23 Andy Estes <aestes@apple.com>
 
Fix issues found by the Clang Static Analyzer
......
......@@ -51,7 +51,8 @@ inline id HardAutorelease(CFTypeRef object)
#ifndef OBJC_NO_GC
if (object)
CFMakeCollectable(object);
#elif !__has_feature(objc_arc)
#endif
#if !__has_feature(objc_arc)
[(id)object autorelease];
#endif
return (id)object;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment