Permalink
Browse files

lavf: dealloc private options in av_write_trailer

Fix the iformat/oformat typo.
  • Loading branch information...
1 parent d32eed5 commit 4badb386cee42569e2e1a1c6981a33c065ebf2de @lu-zero committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 libavformat/utils.c
View
2 libavformat/utils.c
@@ -3261,7 +3261,7 @@ int av_write_trailer(AVFormatContext *s)
av_freep(&s->streams[i]->priv_data);
av_freep(&s->streams[i]->index_entries);
}
- if (s->iformat && s->iformat->priv_class)
+ if (s->oformat->priv_class)
av_opt_free(s->priv_data);
av_freep(&s->priv_data);
return ret;

0 comments on commit 4badb38

Please sign in to comment.