Fixed <rdar://problem/3890385> field and method cache incorrectly capped (c bindings)
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Nov 2004 01:06:47 +0000 (01:06 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Nov 2004 01:06:47 +0000 (01:06 +0000)
        Reviewed by Ken.

        * bindings/c/c_class.cpp:
        (CClass::_commonInit):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8079 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/bindings/c/c_class.cpp

index 249fa26955d6d0568628157ba44c3da89b98030d..d83bd271bbfda5fe1c807bbb29f25daa1685f9ac 100644 (file)
@@ -1,3 +1,12 @@
+2004-11-23  Richard Williamson   <rjw@apple.com>
+
+       Fixed <rdar://problem/3890385> field and method cache incorrectly capped (c bindings)
+
+        Reviewed by Ken.
+
+        * bindings/c/c_class.cpp:
+        (CClass::_commonInit):
+
 2004-11-21  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Ken.
index a0c2d42a1ff52c4255a6d5fdf8a6f38c9b2f058a..32814f9ec8234453d0a503a04e7622410f1820d3 100644 (file)
@@ -46,8 +46,8 @@ void CClass::_commonCopy(const CClass &other) {
 void CClass::_commonInit (NPClass *aClass)
 {
     _isa = aClass;
-    _methods = CFDictionaryCreateMutable(NULL, 16, &kCFTypeDictionaryKeyCallBacks, NULL);
-    _fields = CFDictionaryCreateMutable(NULL, 16, &kCFTypeDictionaryKeyCallBacks, NULL);
+    _methods = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
+    _fields = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
 }