Chromium Code Reviews| Index: gpu/perftests/measurements.cc |
| diff --git a/gpu/perftests/measurements.cc b/gpu/perftests/measurements.cc |
| index 0f463906f66f549edc8ef2d8569a6896af20bee7..47ef28e286b518dff2a2c507c1b5753896616a05 100644 |
| --- a/gpu/perftests/measurements.cc |
| +++ b/gpu/perftests/measurements.cc |
| @@ -96,6 +96,9 @@ Measurement MeasurementTimers::GetAsMeasurement(const std::string& name) { |
| } |
| MeasurementTimers::~MeasurementTimers() { |
| + if (gpu_timer_.get()) { |
| + gpu_timer_->Destroy(true); |
| + } |
| } |
| } // namespace gpu |