Commit 540219df authored by Alexandre Julliard's avatar Alexandre Julliard

ddraw: Use SecureZeroMemory to clear the clipper vtbl.

parent 7562292c
......@@ -109,7 +109,9 @@ static ULONG WINAPI ddraw_clipper_Release(IDirectDrawClipper *iface)
{
if (clipper->region)
DeleteObject(clipper->region);
clipper->IDirectDrawClipper_iface.lpVtbl = NULL; /* Should help with detecting freed clippers. */
/* make sure the object is no longer considered valid */
SecureZeroMemory( &clipper->IDirectDrawClipper_iface.lpVtbl,
sizeof(clipper->IDirectDrawClipper_iface.lpVtbl) );
free(clipper);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment