mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #478] Fixed memory leaks #1294
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/478
State: closed
Merged: Yes
https://codein.withgoogle.com/dashboard/task-instances/5086033567809536/
Firstly you must make project after changes in code. Go to project folder and run
cmake srcand thenmake.Run
valgrind --leak-check=yes ./ccextractor [args].If we run without arguments, then OK - no leaks are possible
Run with random file
valgring --leak-check=yes ./ccextractor /home/izaron/video/itunes.m4v. Oops, the lake of bytes lost in third blocks :(But after exploring, only 2 lines cut down third block
And so on.
I checked the files with formats ts, mp4, mp4, vob on all types of subtitles and options. In the case of memory leaks, I fixed it. It took me a long time, because the slightest mistake led to a crash. The hardest thing was to fix raw format, seems like there are a bug.
In all cases I had 0 errors.