wininet: Cleanup any existing cache file before creating a new one.
commit4a22c88b3776e68ea8fc5b3c669be890b6e92204
authorHans Leidekker <hans@codeweavers.com>
Mon, 7 Dec 2009 08:18:00 +0000 (7 09:18 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Dec 2009 13:18:29 +0000 (7 14:18 +0100)
tree6b64d9046db38607804cd57b08d03bed16dbeb95
parent552db89b06bd7d5d8f9afd126ee82ae87c54b849
wininet: Cleanup any existing cache file before creating a new one.

Otherwise we leak the file name and handle when a request is sent again.
Found by Valgrind.
dlls/wininet/http.c