Permalink
Browse files

Fix another memory leak.

  • Loading branch information...
1 parent 6f2667c commit 3ac7eedd61a6476cf359a0d6c161cc8b57bb0fbc huceke committed Aug 20, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 h264_parser.c
View
3 h264_parser.c
@@ -1606,6 +1606,9 @@ void free_parser(struct h264_parser *parser)
free_nal_buffer(parser->pps_buffer);
free_nal_buffer(parser->sps_buffer);
free(parser->nal_size_length_buf);
+ if(parser->pic != NULL) {
+ free_coded_picture(parser->pic);
+ }
free(parser);
}

0 comments on commit 3ac7eed

Please sign in to comment.