]> granicus.if.org Git - libvpx/commitdiff
Close the file that SimpleEncode opens in its ctor in its dtor.
authorAngie Chen <yunqi@google.com>
Wed, 20 Nov 2019 00:37:57 +0000 (16:37 -0800)
committerAngie Chen <yunqi@google.com>
Wed, 20 Nov 2019 01:54:41 +0000 (01:54 +0000)
Change-Id: I1e5d1be9f076c70ec1d7764d5703aeba8afd4436

vp9/simple_encode.cc

index 7124c7208c0b7d6cc0d27403a6000ee16488a49b..444fb2c735b800eeb89904af2345542091147333 100644 (file)
@@ -283,4 +283,8 @@ int SimpleEncode::GetCodingFrameNum() {
                                   multi_layer_arf, allow_alt_ref);
 }
 
-SimpleEncode::~SimpleEncode() {}
+SimpleEncode::~SimpleEncode() {
+  if (this->file != NULL) {
+    fclose(this->file);
+  }
+}