mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
avfilter/vf_libopencv: fix null pointer dereference
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -294,6 +294,8 @@ static av_cold void dilate_uninit(AVFilterContext *ctx)
|
||||
OCVContext *s = ctx->priv;
|
||||
DilateContext *dilate = s->priv;
|
||||
|
||||
if (!dilate)
|
||||
return;
|
||||
cvReleaseStructuringElement(&dilate->kernel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user