This fix introduces a small memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
| ... | ... |
@@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link) |
| 182 | 182 |
|
| 183 | 183 |
av_freep(&picref->audio); |
| 184 | 184 |
av_freep(&picref->video); |
| 185 |
- av_freep(&picref); |
|
| 185 |
+ av_freep(&(*link)->pool->pic[i]); |
|
| 186 | 186 |
} |
| 187 | 187 |
} |
| 188 |
- av_freep(&(*link)->pool); |
|
| 188 |
+ (*link)->pool->count = 0; |
|
| 189 |
+// av_freep(&(*link)->pool); |
|
| 189 | 190 |
} |
| 190 | 191 |
av_freep(link); |
| 191 | 192 |
} |