Michael Stefaniuc : ddraw: Fix two memory leaks (Smatch).
Alexandre Julliard
julliard at winehq.org
Tue Jan 3 12:52:54 CST 2012
Module: wine
Branch: master
Commit: f1f5536d8ffdd9bd2f8caf5fc5931dea9bfc28a8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f1f5536d8ffdd9bd2f8caf5fc5931dea9bfc28a8
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Jan 2 22:27:07 2012 +0100
ddraw: Fix two memory leaks (Smatch).
---
dlls/ddraw/surface.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index d110acc..2f92edf 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -1353,6 +1353,7 @@ static HRESULT ddraw_surface_blt_clipped(IDirectDrawSurfaceImpl *dst_surface, co
&dst_rect, clip_list, &clip_list_size)))
{
WARN("Failed to get clip list, hr %#x.\n", hr);
+ HeapFree(GetProcessHeap(), 0, clip_list);
return hr;
}
@@ -1386,6 +1387,7 @@ static HRESULT ddraw_surface_blt_clipped(IDirectDrawSurfaceImpl *dst_surface, co
}
}
+ HeapFree(GetProcessHeap(), 0, clip_list);
return hr;
}
More information about the wine-cvs
mailing list