wined3d: Only addref clippers if one exists.
This commit is contained in:
parent
4295b18950
commit
093261b729
@ -3504,7 +3504,9 @@ HRESULT WINAPI IWineD3DSurfaceImpl_GetClipper(IWineD3DSurface *iface, IWineD3DCl
|
|||||||
TRACE("(%p)->(%p)\n", This, clipper);
|
TRACE("(%p)->(%p)\n", This, clipper);
|
||||||
|
|
||||||
*clipper = This->clipper;
|
*clipper = This->clipper;
|
||||||
|
if(*clipper) {
|
||||||
IWineD3DClipper_AddRef(*clipper);
|
IWineD3DClipper_AddRef(*clipper);
|
||||||
|
}
|
||||||
return WINED3D_OK;
|
return WINED3D_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user