Fix some leaks in DRT seen on the leaks bot
authoraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2011 16:50:18 +0000 (16:50 +0000)
committeraroben@apple.com <aroben@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2011 16:50:18 +0000 (16:50 +0000)
commit1490a4b3e4ac536c3ab3db859a55535f4a74049f
tree315419e4cdf0d4f4d52d6906380402fbd4fce9f1
parent2e2eeb88bd77f01df4fdd3863e10340d629b9c61
Fix some leaks in DRT seen on the leaks bot

Fixes <http://webkit.org/b/56638> addURLToRedirectCallback and
setWillSendRequestClearHeaderCallback in DRT are leaky

Reviewed by Alexey Proskuryakov.

* DumpRenderTree/ForwardingHeaders/wtf/OwnArrayPtr.h: Added.

* DumpRenderTree/LayoutTestController.cpp:
(addURLToRedirectCallback):
(setWillSendRequestClearHeaderCallback):
Use OwnArrayPtr to cause the strings to be deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@81482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/DumpRenderTree/ForwardingHeaders/wtf/OwnArrayPtr.h [new file with mode: 0644]
Tools/DumpRenderTree/LayoutTestController.cpp