[PATCH] evr/allocator: Fix sample entry leak.

Nikolay Sivov nsivov at codeweavers.com
Wed Feb 3 07:05:43 CST 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---

A bit later It's allocated again.

 dlls/evr/sample.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/evr/sample.c b/dlls/evr/sample.c
index 44b09d6d474..9c76011f153 100644
--- a/dlls/evr/sample.c
+++ b/dlls/evr/sample.c
@@ -585,7 +585,7 @@ static HRESULT sample_allocator_create_samples(struct sample_allocator *allocato
 
     for (i = 0; i < sample_count; ++i)
     {
-        struct queued_sample *queued_sample = heap_alloc(sizeof(*queued_sample));
+        struct queued_sample *queued_sample;
         IMFMediaBuffer *buffer;
 
         if (SUCCEEDED(hr = MFCreateVideoSampleFromSurface(NULL, &sample)))
-- 
2.30.0




More information about the wine-devel mailing list