- <rdar://problem/5658317> REGRESSION: 20+ leaks seen on buildbots.
authorkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Dec 2007 21:01:39 +0000 (21:01 +0000)
committerkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Dec 2007 21:01:39 +0000 (21:01 +0000)
        - Build bot and leak fix.

        * DumpRenderTree/LayoutTestController.cpp:
        (pathToLocalResourceCallback):

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

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/LayoutTestController.cpp

index b6d7ca7aa405c8f9d9d5f81f9f8b364a6d0e6811..db0a0f1f796c12f386ea6c10c6df9be9a330d5e8 100644 (file)
@@ -1,3 +1,11 @@
+2007-12-20  Kevin McCullough  <kmccullough@apple.com>
+
+        - <rdar://problem/5658317> REGRESSION: 20+ leaks seen on buildbots.
+        - Build bot and leak fix.
+
+        * DumpRenderTree/LayoutTestController.cpp:
+        (pathToLocalResourceCallback):
+
 2007-12-19  David Kilzer  <ddkilzer@apple.com>
 
         Make svn-apply/svn-unapply work with patches from git-format-patch.
index 3557026129c223a3cf30e56f37d74d739e220025..39e7c8fe3eacfc29f66f02a403288c6729ccd237 100644 (file)
@@ -142,7 +142,7 @@ static JSValueRef pathToLocalResourceCallback(JSContextRef context, JSObjectRef
         return JSValueMakeUndefined(context);
 
     LayoutTestController* controller = reinterpret_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject));
-    JSRetainPtr<JSStringRef> localPath = JSValueToStringCopy(context, arguments[0], exception);
+    JSRetainPtr<JSStringRef> localPath(Adopt, JSValueToStringCopy(context, arguments[0], exception));
     ASSERT(!*exception);
 
     return JSValueMakeString(context, controller->pathToLocalResource(context, localPath.get()));