aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-22 22:33:05 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-22 22:33:05 +0000
commita276975a62ef4d9941e40c831fdfe7852e0e243e (patch)
tree425f7b21926e07893441db1c8782fe502edff955
parentddf98a88340a7e453eef4e3c236c82a5766a5f01 (diff)
check for memory leaks in debug-build
git-svn-id: http://skia.googlecode.com/svn/trunk@4712 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--tests/skia_test.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
index b740590798..ecb00374ff 100644
--- a/tests/skia_test.cpp
+++ b/tests/skia_test.cpp
@@ -103,7 +103,10 @@ private:
};
int main (int argc, char * const argv[]) {
- SkAutoGraphics ag;
+#ifdef SK_ENABLE_INST_COUNT
+ gPrintInstCount = true;
+#endif
+ SkGraphics::Init();
bool androidMode = false;
const char* matchStr = NULL;
@@ -166,5 +169,8 @@ int main (int argc, char * const argv[]) {
SkDebugf("Finished %d tests, %d failures, %d skipped.\n",
count, failCount, skipCount);
}
+
+ SkGraphics::Term();
+
return (failCount == 0) ? 0 : 1;
}