Mercurial > libavcodec.hg
diff utils.c @ 400:b0aed401a756 libavcodec
better av_freep()
author | glantau |
---|---|
date | Mon, 20 May 2002 16:23:27 +0000 |
parents | e2cb8a4ee0c5 |
children | 718a22dc121f |
line wrap: on
line diff
--- a/utils.c Mon May 20 16:22:51 2002 +0000 +++ b/utils.c Mon May 20 16:23:27 2002 +0000 @@ -65,6 +65,13 @@ free(ptr); } +/* cannot call it directly because of 'void **' casting is not automatic */ +void __av_freep(void **ptr) +{ + av_free(*ptr); + *ptr = NULL; +} + /* encoder management */ AVCodec *first_avcodec;