2011/6/16 Charles Welton charleswfb@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.