mfreadwrite/reader: Make the stream sample allocator callback own a reference to...
commitcdb0471eca6655051701935f18c7e5987b1fe34c
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Sat, 9 Apr 2022 06:16:17 +0000 (9 09:16 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 11 Apr 2022 08:11:39 +0000 (11 10:11 +0200)
tree430efe7c952d60474528a7a4646098fdb45f7ac4
parenta4e4e19fe0f15b0b9bf67273bb1b27e97474b606
mfreadwrite/reader: Make the stream sample allocator callback own a reference to the source reader.

The stream sample allocator callback NotifyRelease() method assumes that
the source reader is valid. Therefore it must own a reference to it,
otherwise it might get called while the source reader is being destroyed,
causing a crash.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/mfreadwrite/reader.c