From ObjcClass::methodsNamed(): char fixedSizeBuffer[1024]; char* buffer = fixedSizeBuffer; CString jsName = identifier.ascii(); if (!convertJSMethodNameToObjc(jsName.data(), buffer, sizeof(fixedSizeBuffer))) { int length = jsName.length() + 1; buffer = new char[length]; if (!buffer || !convertJSMethodNameToObjc(jsName.data(), buffer, length)) return methodList; } RetainPtr<CFStringRef> methodName(AdoptCF, CFStringCreateWithCString(NULL, buffer, kCFStringEncodingASCII)); Method* method = (Method*)CFDictionaryGetValue(_methods.get(), methodName.get()); if (method) { methodList.append(method); return methodList; } If the second convertJSMethodNameToObjc() return false, or if the the dictionary match the method name, buffer is never released.
Created attachment 139054 [details] Patch
Comment on attachment 139054 [details] Patch Clearing flags on attachment: 139054 Committed r115358: <http://trac.webkit.org/changeset/115358>
All reviewed patches have been landed. Closing bug.
Moving all JavaScriptGlue bugs to JavaScriptCore. The JavaScriptGlue framework itself is long gone. And most of the more recent bugs put in this component were put there by people who thought this was for some other aspect of “JavaScript glue” and have nothing to do with the actual original reason for the existence of this component, which was an OS-X-only framework named JavaScriptGlue.