Mercurial > libavcodec.hg
comparison utils.c @ 7292:d0b6c6caef40 libavcodec
Free in avcodec_close() avctx->rc_eq. Fix a memory leak.
| author | stefano |
|---|---|
| date | Wed, 16 Jul 2008 22:10:34 +0000 |
| parents | 643c85503f1f |
| children | dddc7406c5b6 |
comparison
equal
deleted
inserted
replaced
| 7291:239547e8796e | 7292:d0b6c6caef40 |
|---|---|
| 971 avcodec_thread_free(avctx); | 971 avcodec_thread_free(avctx); |
| 972 if (avctx->codec->close) | 972 if (avctx->codec->close) |
| 973 avctx->codec->close(avctx); | 973 avctx->codec->close(avctx); |
| 974 avcodec_default_free_buffers(avctx); | 974 avcodec_default_free_buffers(avctx); |
| 975 av_freep(&avctx->priv_data); | 975 av_freep(&avctx->priv_data); |
| 976 av_freep(&avctx->rc_eq); | |
| 976 avctx->codec = NULL; | 977 avctx->codec = NULL; |
| 977 entangled_thread_counter--; | 978 entangled_thread_counter--; |
| 978 return 0; | 979 return 0; |
| 979 } | 980 } |
| 980 | 981 |
