diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2021-11-16 13:53:41 (GMT) |
---|---|---|
committer | Jan Niklas Hasse <jhasse@bixense.com> | 2021-11-16 13:53:54 (GMT) |
commit | e5935b63757f3a788bc56d2c7afd9e390daf2f07 (patch) | |
tree | b5945cababcf45027e9b7d5257cd9de076ef183e /src | |
parent | 90fc541a8162e80ea75d47972be3146fdfbe2b84 (diff) | |
download | Ninja-e5935b63757f3a788bc56d2c7afd9e390daf2f07.zip Ninja-e5935b63757f3a788bc56d2c7afd9e390daf2f07.tar.gz Ninja-e5935b63757f3a788bc56d2c7afd9e390daf2f07.tar.bz2 |
Fix crash when FakeCommandRunner is deleted twice
Diffstat (limited to 'src')
-rw-r--r-- | src/build_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build_test.cc b/src/build_test.cc index 8b6dca2..f6e1215 100644 --- a/src/build_test.cc +++ b/src/build_test.cc @@ -1229,6 +1229,7 @@ void TestPhonyUseCase(BuildTest* t, int i) { )); // Set up test. + builder_.command_runner_.release(); // BuildTest owns the CommandRunner builder_.command_runner_.reset(&command_runner_); fs_.Create("blank", ""); // a "real" file |