Deleted timer for record and unflatten benchmarks.
authorkeyar@chromium.org <keyar@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 20 Aug 2012 15:04:09 +0000 (15:04 +0000)
committerkeyar@chromium.org <keyar@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 20 Aug 2012 15:04:09 +0000 (15:04 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@5185 2bbb7eff-a529-9590-31e7-b0007b416f81

tools/PictureBenchmark.cpp

index fe7607b05261fa1b1ffedf7e2c2f55a2be2040e5..e45c5e83893c20c782e91ba0a797a586bffcd71f 100644 (file)
@@ -99,6 +99,8 @@ void RecordPictureBenchmark::run(SkPicture* pict) {
     }
 
     SkDebugf("record: msecs = %6.5f\n", wall_time / fRepeats);
+
+    SkDELETE(timer);
 }
 
 void SimplePictureBenchmark::run(SkPicture* pict) {
@@ -221,6 +223,8 @@ void UnflattenPictureBenchmark::run(SkPicture* pict) {
     }
 
     SkDebugf("unflatten: msecs = %6.4f\n", wall_time / fRepeats);
+
+    SkDELETE(timer);
 }
 
 }