Commit 21979cf9 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_morpho: fix leak by not returning too early

parent 07e46690
...@@ -892,7 +892,7 @@ copy: ...@@ -892,7 +892,7 @@ copy:
break; break;
ret = erode(&s->h[p], &s->f[p], &s->SE[p], &s->Ty[1][p]); ret = erode(&s->h[p], &s->f[p], &s->SE[p], &s->Ty[1][p]);
if (ret < 0) if (ret < 0)
return ret; break;
difference(&s->g[p], &s->h[p]); difference(&s->g[p], &s->h[p]);
break; break;
case TOPHAT: case TOPHAT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment