[1/3] d3dx9/line: Added device pointer to ID3DXLineImpl and initialize it.

Matteo Bruni matteo.mystral at gmail.com
Thu Jun 16 08:11:12 CDT 2011


2011/6/16 Charles Welton <charleswfb at gmail.com>:
>
> @@ -27,6 +27,8 @@ static const struct ID3DXLineVtbl ID3DXLine_Vtbl;
>  typedef struct ID3DXLineImpl {
>      ID3DXLine ID3DXLine_iface;
>      LONG ref;
> +
> +    IDirect3DDevice9 * device;
>  } ID3DXLineImpl;

You also have to Release() the device in ID3DXLineImpl_Release when
ref reaches 0. Additional style nitpick, there should be no space
between '*' and  the field name.



More information about the wine-devel mailing list