Nikolay Sivov (@nsivov) commented about dlls/d2d1/sprite_batch.c:
+ d2d_sprite_batch_GetSprites, + d2d_sprite_batch_GetSpritesCount, + d2d_sprite_batch_Clear +}; + +HRESULT d2d_create_sprite_batch(struct d2d_device_context *ctx, ID2D1SpriteBatch **iface) { + struct d2d_sprite_batch *sprite_batch; + + if (!(sprite_batch = calloc(1, sizeof(*sprite_batch)))) + return E_OUTOFMEMORY; + + sprite_batch->ID2D1SpriteBatch_iface.lpVtbl = &d2d_sprite_batch_vtbl; + + ID2D1SpriteBatch_AddRef(&sprite_batch->ID2D1SpriteBatch_iface); + *iface = &sprite_batch->ID2D1SpriteBatch_iface; + Again, follow what existing functions are doing. There is no need for AddRef.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11249#note_144096