Title: [154655] trunk/Source/WTF
Revision
154655
Author
aes...@apple.com
Date
2013-08-26 18:25:34 -0700 (Mon, 26 Aug 2013)

Log Message

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):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (154654 => 154655)


--- trunk/Source/WTF/ChangeLog	2013-08-27 00:50:12 UTC (rev 154654)
+++ trunk/Source/WTF/ChangeLog	2013-08-27 01:25:34 UTC (rev 154655)
@@ -1,3 +1,13 @@
+2013-08-26  Andy Estes  <aes...@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  <aes...@apple.com>
 
         Fix issues found by the Clang Static Analyzer

Modified: trunk/Source/WTF/wtf/ObjcRuntimeExtras.h (154654 => 154655)


--- trunk/Source/WTF/wtf/ObjcRuntimeExtras.h	2013-08-27 00:50:12 UTC (rev 154654)
+++ trunk/Source/WTF/wtf/ObjcRuntimeExtras.h	2013-08-27 01:25:34 UTC (rev 154655)
@@ -51,7 +51,8 @@
 #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;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to