Nikolay Sivov : evr/allocator: Fix sample entry leak.

Alexandre Julliard julliard at winehq.org
Wed Feb 3 15:39:29 CST 2021


Module: wine
Branch: master
Commit: c37fe322cab631466a9f054ff370491be37ee49b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c37fe322cab631466a9f054ff370491be37ee49b

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Feb  3 16:05:43 2021 +0300

evr/allocator: Fix sample entry leak.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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)))




More information about the wine-cvs mailing list