mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 16:40:18 +00:00
lavd: fixed sws setting NULL before a clear
leads to a leak
This commit is contained in:
@@ -119,8 +119,8 @@ static void deconfigure(struct state_libavcodec_decompress *s)
|
||||
hwaccel_state_reset(&s->hwaccel);
|
||||
|
||||
#ifdef HAVE_SWSCALE
|
||||
s->sws.ctx = NULL;
|
||||
sws_freeContext(s->sws.ctx);
|
||||
s->sws.ctx = NULL;
|
||||
if (s->sws.frame) {
|
||||
av_freep(s->sws.frame->data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user