Index: tools/VisualBench/VisualBenchmarkStream.cpp |
diff --git a/tools/VisualBench/VisualBenchmarkStream.cpp b/tools/VisualBench/VisualBenchmarkStream.cpp |
index 9fd2a29968ee7c73ea340671c7732ec399929852..e0d02f2b97c259980ff9a1e53eb4ee848ec04364 100644 |
--- a/tools/VisualBench/VisualBenchmarkStream.cpp |
+++ b/tools/VisualBench/VisualBenchmarkStream.cpp |
@@ -168,7 +168,7 @@ Benchmark* VisualBenchmarkStream::innerNext() { |
if (gm->runAsBench()) { |
fSourceType = "gm"; |
fBenchType = "micro"; |
- return new GMBench(gm.detach()); |
+ return new GMBench(gm.release()); |
} |
} |