Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/animation.c:
if (!max_outputs || !max_sets || !max_tracks || !max_events || !controller) return D3D_OK;
- object = HeapAlloc(GetProcessHeap(), 0, sizeof(*object));
- object = malloc(sizeof(*object));
Mostly as a "while you're at it", we usually zero-out object allocations, so probably this would be better as a calloc().