mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
libarmbox/video.cpp: image_to_mpeg2 fix memleak
Origin commit data
------------------
Branch: master
Commit: 9e46e4e950
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-05 (Sun, 05 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -364,6 +364,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