d3d [1]: Remove AddRef from IWineD3DDevice_GetVertexDeclaration.

Alexandre Julliard julliard at winehq.org
Wed Nov 29 03:22:38 CST 2006


Stefan Dösinger <stefandoesinger at gmx.at> writes:

> Well, GetParent isn't part of IUnknown(its a wined3d invention), so from the 
> COM point of view we're fine to do whatever we want with it. (Just 
> QueryInterface has the rule that it addrefs the returned interface)

The COM rules are not limited to QueryInterface, any call that returns
an interface pointer needs to addref it.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list