mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libarmbox/video.cpp: image_to_mpeg2 fix memleak
This commit is contained in:
@@ -346,6 +346,7 @@ int image_to_mpeg2(const char *image_name, int fd)
|
|||||||
av_packet_unref(&packet);
|
av_packet_unref(&packet);
|
||||||
}
|
}
|
||||||
avcodec_close(codecContext);
|
avcodec_close(codecContext);
|
||||||
|
av_free(codecContext);
|
||||||
}
|
}
|
||||||
avformat_close_input(&formatContext);
|
avformat_close_input(&formatContext);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user