Skip to content

Commit 9d13f7c

Browse files
committed
Memory leak: missing avcodec resource release.
1 parent 6e1e53e commit 9d13f7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/video-display.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ VideoLoader::~VideoLoader() {
100100
avcodec_close(codec_context_);
101101
sws_freeContext(sws_context_);
102102
avformat_close_input(&format_context_);
103+
avcodec_free_context(&codec_context_);
103104
delete terminal_fb_;
104105
}
105106

0 commit comments

Comments
 (0)