Commit a57790f4 authored by Oliver Stieber's avatar Oliver Stieber Committed by Alexandre Julliard

wined3d: Vertex declaration cleanup.

Clean up constants and the wine declaration when the vertex declaration is destroyed.
parent 8ff9a7eb
......@@ -420,6 +420,8 @@ ULONG WINAPI IWineD3DVertexDeclarationImpl_Release(IWineD3DVertexDeclaration *if
if (ref == 0) {
HeapFree(GetProcessHeap(), 0, This->pDeclaration8);
HeapFree(GetProcessHeap(), 0, This->pDeclaration9);
HeapFree(GetProcessHeap(), 0, This->pDeclarationWine);
HeapFree(GetProcessHeap(), 0, This->constants);
HeapFree(GetProcessHeap(), 0, This);
}
return ref;
......
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