ddraw: Fix two memory leaks (Smatch).

This commit is contained in:
Michael Stefaniuc 2012-01-02 22:27:07 +01:00 committed by Alexandre Julliard
parent 158c8b76cb
commit f1f5536d8f
1 changed files with 2 additions and 0 deletions

View File

@ -1353,6 +1353,7 @@ static HRESULT ddraw_surface_blt_clipped(IDirectDrawSurfaceImpl *dst_surface, co
&dst_rect, clip_list, &clip_list_size))) &dst_rect, clip_list, &clip_list_size)))
{ {
WARN("Failed to get clip list, hr %#x.\n", hr); WARN("Failed to get clip list, hr %#x.\n", hr);
HeapFree(GetProcessHeap(), 0, clip_list);
return hr; return hr;
} }
@ -1386,6 +1387,7 @@ static HRESULT ddraw_surface_blt_clipped(IDirectDrawSurfaceImpl *dst_surface, co
} }
} }
HeapFree(GetProcessHeap(), 0, clip_list);
return hr; return hr;
} }