Commit 6a1c052f authored by Deb Mukherjee's avatar Deb Mukherjee Committed by Gerrit Code Review

Merge "Removes fileno check to prevent valgrind error"

parents 250fc1f6 4851b99b
......@@ -92,12 +92,7 @@ class TempOutFile {
protected:
void CloseFile() {
if (file_) {
// Close if file pointer is associated with an open file
#if defined(_WIN32)
if (file_->_ptr != NULL) fclose(file_);
#else
if (fileno(file_) != -1) fclose(file_);
#endif
fclose(file_);
file_ = NULL;
}
}
......
......@@ -141,11 +141,11 @@ class Y4mVideoWriteTest
Y4mVideoWriteTest() {}
virtual ~Y4mVideoWriteTest() {
CloseSource();
delete tmpfile_;
input_file_ = NULL;
}
virtual void ReplaceInputFile(FILE *input_file) {
void ReplaceInputFile(FILE *input_file) {
CloseSource();
frame_ = 0;
input_file_ = input_file;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment