diff options
author | 2012-07-22 22:33:05 +0000 | |
---|---|---|
committer | 2012-07-22 22:33:05 +0000 | |
commit | a276975a62ef4d9941e40c831fdfe7852e0e243e (patch) | |
tree | 425f7b21926e07893441db1c8782fe502edff955 | |
parent | ddf98a88340a7e453eef4e3c236c82a5766a5f01 (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.cpp | 8 |
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; } |