Plug leak in jsValueWithDictionaryInContext().
[WebKit-https.git] / Source / WebCore / platform / mac / SerializedPlatformRepresentationMac.mm
index a6760aa..5cce2ac 100644 (file)
@@ -196,6 +196,7 @@ static JSValue *jsValueWithDictionaryInContext(NSDictionary *dictionary, JSConte
 
         JSStringRef name = JSStringCreateWithCFString((CFStringRef)key);
         JSObjectSetProperty([context JSGlobalContextRef], resultObject, name, [value JSValueRef], 0, &exception);
+        JSStringRelease(name);
         if (exception)
             continue;
     }