y4m_test: init members in the constructor
prevents use of an uninitialized value in the deconstructor should the test fail before tmpfile_ is set. Change-Id: I8b49fd05f0d05e055fdf653bd46983d30f466a68
This commit is contained in:
parent
cfd92dab18
commit
9e9722bc79
@ -138,7 +138,7 @@ INSTANTIATE_TEST_CASE_P(C, Y4mVideoSourceTest,
|
|||||||
|
|
||||||
class Y4mVideoWriteTest : public Y4mVideoSourceTest {
|
class Y4mVideoWriteTest : public Y4mVideoSourceTest {
|
||||||
protected:
|
protected:
|
||||||
Y4mVideoWriteTest() {}
|
Y4mVideoWriteTest() : tmpfile_(NULL) {}
|
||||||
|
|
||||||
virtual ~Y4mVideoWriteTest() {
|
virtual ~Y4mVideoWriteTest() {
|
||||||
delete tmpfile_;
|
delete tmpfile_;
|
||||||
|
Loading…
Reference in New Issue
Block a user