From 8df78decb4e01b579bbbd1f479d187adf34fc030 Mon Sep 17 00:00:00 2001 From: milla Date: Tue, 15 Jun 2021 13:12:01 +0200 Subject: Fix indentation Use smart pointer for Reader Don't define fileReader constructor and destructor twice (win and posix) but just once as their implementation is the same --- src/as-02-info.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/as-02-info.cpp') diff --git a/src/as-02-info.cpp b/src/as-02-info.cpp index d1b823c..79fe41b 100644 --- a/src/as-02-info.cpp +++ b/src/as-02-info.cpp @@ -930,7 +930,7 @@ show_file_info(CommandOptions& Options, const Kumu::IFileReaderFactory& fileRead else { fprintf(stderr, "Unknown/unsupported essence type: %s\n", Options.filenames.front().c_str()); - Kumu::IFileReader* Reader = fileReaderFactory.CreateFileReader(); + ASDCP::mem_ptr Reader(fileReaderFactory.CreateFileReader()); const Dictionary* Dict = &DefaultCompositeDict(); MXF::OP1aHeader TestHeader(Dict); @@ -957,7 +957,6 @@ show_file_info(CommandOptions& Options, const Kumu::IFileReaderFactory& fileRead { fputs("File is not MXF.\n", stdout); } - delete Reader; } return result; } -- cgit v1.2.3