diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-11 11:53:39 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-11 11:53:39 +0400 |
commit | 8b834ac5d9f32bff432eb84cd4b78eae01a7abe7 (patch) | |
tree | 710e30789d6b7709b0e31be88b105d88cf07cbec /libavcodec/utils.c | |
parent | 849ff0c4d169d098a34306f9ea05bdc6f74a3b3f (diff) |
100l, change avsubtitle_free to the actually tested and working version.
Originally committed as revision 24188 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index ced6b64c29..f21e9eda7b 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -695,16 +695,16 @@ void avsubtitle_free(AVSubtitle *sub) for (i = 0; i < sub->num_rects; i++) { - av_freep(sub->rects[i]->pict.data[0]); - av_freep(sub->rects[i]->pict.data[1]); - av_freep(sub->rects[i]->pict.data[2]); - av_freep(sub->rects[i]->pict.data[3]); - av_freep(sub->rects[i]->text); - av_freep(sub->rects[i]->ass); - av_freep(sub->rects[i]); + av_freep(&sub->rects[i]->pict.data[0]); + av_freep(&sub->rects[i]->pict.data[1]); + av_freep(&sub->rects[i]->pict.data[2]); + av_freep(&sub->rects[i]->pict.data[3]); + av_freep(&sub->rects[i]->text); + av_freep(&sub->rects[i]->ass); + av_freep(&sub->rects[i]); } - av_freep(sub->rects); + av_freep(&sub->rects); memset(sub, 0, sizeof(AVSubtitle)); } |