Fix a crash when pathToLocalResource fails and a leak
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Jan 2008 18:14:34 +0000 (18:14 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Jan 2008 18:14:34 +0000 (18:14 +0000)
commit9f2dfcaf199002cbb29415ca511702c5a3fea5aa
tree800e85b9c44521442b6338df060109560a5a76cb
parente6e83025dd918b5cc159c5f0cdff4e6fb680e0d9
     Fix a crash when pathToLocalResource fails and a leak

         Reviewed by Darin.

         * DumpRenderTree/LayoutTestController.cpp:
         (pathToLocalResourceCallback): Dont leak the JSStringRef, and make
         sure not to pass null to JSValueMakeString.
         * DumpRenderTree/win/LayoutTestControllerWin.cpp:
         (LayoutTestController::pathToLocalResource): Print an error message if
         the conversion fails so it's clear what happened.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/LayoutTestController.cpp
WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp