diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-14 18:52:51 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-14 20:46:15 +0200 |
commit | f43ac027232f6aeb826d7c29b1dfca9b3876f3ed (patch) | |
tree | a4397fa74ada462b5bff34d114682ca8c63061fc /libavcodec/iirfilter.c | |
parent | 43fb16cf74718fe6c393c5f20d0bfaea4e3e8cb4 (diff) | |
download | ffmpeg-f43ac027232f6aeb826d7c29b1dfca9b3876f3ed.tar.gz |
avcodec/iirfilter: Make ff_iir_filter_free_state() also zero the freed pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/iirfilter.c')
-rw-r--r-- | libavcodec/iirfilter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c index b47f91d7b4..cb5871cb29 100644 --- a/libavcodec/iirfilter.c +++ b/libavcodec/iirfilter.c @@ -299,9 +299,9 @@ void ff_iir_filter_flt(const struct FFIIRFilterCoeffs *c, } } -av_cold void ff_iir_filter_free_state(struct FFIIRFilterState *state) +av_cold void ff_iir_filter_free_statep(struct FFIIRFilterState **state) { - av_free(state); + av_freep(state); } av_cold void ff_iir_filter_free_coeffsp(struct FFIIRFilterCoeffs **coeffsp) @@ -349,7 +349,7 @@ int main(void) printf("%6d %6d\n", x[i], y[i]); ff_iir_filter_free_coeffsp(&fcoeffs); - ff_iir_filter_free_state(fstate); + ff_iir_filter_free_statep(&fstate); return 0; } #endif /* TEST */ |