Skip to content
Snippets Groups Projects
Commit f1f5536d authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard
Browse files

ddraw: Fix two memory leaks (Smatch).

parent 158c8b76
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment