mfreadwrite/reader: Unset sample allocator callbacks while destroying the source...
commita233c49519f9f8dea9e6270700c89d52cf7d8879
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Sat, 9 Apr 2022 06:16:18 +0000 (9 09:16 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 11 Apr 2022 08:11:42 +0000 (11 10:11 +0200)
tree8b9cefa697979470a3d26fa1ca50b5268070f376
parentcdb0471eca6655051701935f18c7e5987b1fe34c
mfreadwrite/reader: Unset sample allocator callbacks while destroying the source reader.

The sample allocator callbacks own a reference to the source reader,
which creates a reference loop and prevents the source reader from
being properly destroyed.

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