[PATCH] evr/allocator: Fix sample entry leak.
3 Feb
2021
3 Feb
'21
1:05 p.m.
Signed-off-by: Nikolay Sivov <nsivov(a)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
1776
Age (days ago)
1776
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov