[PATCH 1/4] mfplat: Fix use-after-free when releasing sample allocator.

Nikolay Sivov nsivov at codeweavers.com
Mon Feb 15 05:33:28 CST 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/mfplat/sample.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/mfplat/sample.c b/dlls/mfplat/sample.c
index 4ecce4fbe84..10d2b7bc2a8 100644
--- a/dlls/mfplat/sample.c
+++ b/dlls/mfplat/sample.c
@@ -1174,8 +1174,6 @@ static ULONG WINAPI sample_allocator_Release(IMFVideoSampleAllocatorEx *iface)
             IDirect3DDeviceManager9_Release(allocator->d3d9_device_manager);
         if (allocator->dxgi_device_manager)
             IMFDXGIDeviceManager_Release(allocator->dxgi_device_manager);
-        if (allocator->attributes)
-            IMFAttributes_Release(allocator->attributes);
         sample_allocator_set_media_type(allocator, NULL);
         sample_allocator_set_attributes(allocator, NULL);
         sample_allocator_release_samples(allocator);
-- 
2.30.0




More information about the wine-devel mailing list