Fix a broken unit test.
2011-08-30T04:38:22Z!thonsew@yahoo.com fixed a static initialization problem, but the code assumed the same object was used. This commit fixes it, also tested by thonsew ( committer of 2011-08-30T04:38:22Z!thonsew@yahoo.com).
This commit is contained in:
parent
7c92001031
commit
29614541f9
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ namespace {
|
|||
typedef std::vector<std::pair<unsigned, unsigned> > tresolution_list;
|
||||
|
||||
CVideo & video() {
|
||||
CVideo * v_ = new CVideo(CVideo::FAKE_TEST);
|
||||
static CVideo * v_ = new CVideo(CVideo::FAKE_TEST);
|
||||
return *v_;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue