shithub: libvpx

Download patch

ref: 65c7b631a23db881c6b2bdb510db71d04c7f3d76
parent: 9fbcfd159be84df2e62cdd7f9e8a395849830764
author: Angie Chen <yunqi@google.com>
date: Tue Nov 19 11:37:57 EST 2019

Close the file that SimpleEncode opens in its ctor in its dtor.

Change-Id: I1e5d1be9f076c70ec1d7764d5703aeba8afd4436

--- a/vp9/simple_encode.cc
+++ b/vp9/simple_encode.cc
@@ -283,4 +283,8 @@
                                   multi_layer_arf, allow_alt_ref);
 }
 
-SimpleEncode::~SimpleEncode() {}
+SimpleEncode::~SimpleEncode() {
+  if (this->file != NULL) {
+    fclose(this->file);
+  }
+}