2 Apr
2025
2 Apr
'25
9:13 a.m.
Anton Baskanov (@baskanov) commented about dlls/amstream/ddrawstream.c:
struct ddraw_stream *stream = impl_from_IAMMediaStream(iface); ULONG ref = InterlockedDecrement(&stream->ref);
TRACE("%p decreasing refcount to %lu.\n", stream, ref);
if (!ref) { DeleteCriticalSection(&stream->cs); if (stream->ddraw) IDirectDraw_Release(stream->ddraw); free(stream);
```suggestion:-0+0 IMemAllocator_Release(stream->private_allocator); free(stream); ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7715#note_99677