Alexandre Julliard : wininet: Fix a memory leak in the URL cache.
Alexandre Julliard
julliard at winehq.org
Tue Apr 28 07:52:59 CDT 2009
Module: wine
Branch: master
Commit: 7e11ecdd8d2db70526f284c43bf7a7f1ebd14a9e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e11ecdd8d2db70526f284c43bf7a7f1ebd14a9e
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 27 20:04:45 2009 +0200
wininet: Fix a memory leak in the URL cache.
---
dlls/wininet/urlcache.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c
index b4feba3..5e1541d 100644
--- a/dlls/wininet/urlcache.c
+++ b/dlls/wininet/urlcache.c
@@ -692,6 +692,7 @@ static LPURLCACHE_HEADER URLCacheContainer_LockIndex(URLCACHECONTAINER * pContai
* of the memory mapped file */
if (pHeader->dwFileSize != pContainer->file_size)
{
+ UnmapViewOfFile( pHeader );
URLCacheContainer_CloseIndex(pContainer);
error = URLCacheContainer_OpenIndex(pContainer);
if (error != ERROR_SUCCESS)
More information about the wine-cvs
mailing list