-
mhahnenberg@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=106056 Reviewed by Darin Adler. * API/APIJSValue.h: * API/JSValue.mm: Make the reference to the JSContext strong. (-[JSValue context]): (-[JSValue initWithValue:inContext:]): (-[JSValue dealloc]): * API/JSWrapperMap.mm: Make the reference back from wrappers to Obj-C objects weak instead of strong. Also add an explicit WeakGCMap in the JSWrapperMap rather than using Obj-C associated object API which was causing memory leaks. (wrapperClass): (-[JSObjCClassInfo wrapperForObject:]): (-[JSWrapperMap initWithContext:]): (-[JSWrapperMap dealloc]): (-[JSWrapperMap wrapperForObject:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
211015ec