diff --git a/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp b/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp index 68d54583f..5e1b42b21 100644 --- a/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp +++ b/Source/C++/Apps/Mp42Ts/Mp42Ts.cpp @@ -515,6 +515,8 @@ main(int argc, char** argv) AP4_Movie* movie = input_file->GetMovie(); if (movie == NULL) { fprintf(stderr, "ERROR: no movie in file\n"); + delete input; + delete input_file; return 1; }