removeNativeReference(). (This will save time on dealloc
for all ObjC DOM objects.)
Reviewed by Darin.
* bindings/runtime_root.cpp:
(KJS::Bindings::removeNativeReference):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8347
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-12 Richard Williamson <rjw@apple.com>
+
+ Avoid additional work on dealloc by adding early out to
+ removeNativeReference(). (This will save time on dealloc
+ for all ObjC DOM objects.)
+
+ Reviewed by Darin.
+
+ * bindings/runtime_root.cpp:
+ (KJS::Bindings::removeNativeReference):
+
2005-01-12 Richard Williamson <rjw@apple.com>
Fixed <rdar://problem/3923356> REGRESSION: Java/JavaScript security checks working incorrectly
void KJS::Bindings::removeNativeReference (ObjectImp *imp)
{
+ if (!imp)
+ return;
+
CFMutableDictionaryRef referencesDictionary = findReferenceDictionary (imp);
if (referencesDictionary) {