avfilter/avf_showspectrum: Fix memleak of text allocated by av_asprintf()

Fixes CID1396261

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2017-01-21 23:07:02 +01:00
parent e740e9c798
commit 61164112a5

View File

@ -1255,6 +1255,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
if (!text)
continue;
drawtext(s->outpicref, s->w + s->start_x + 35, s->start_y + y - 5, text, 0);
av_free(text);
}
}
}