check for memory leaks in debug-build



git-svn-id: http://skia.googlecode.com/svn/trunk@4712 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
index b740590..ecb0037 100644
--- a/tests/skia_test.cpp
+++ b/tests/skia_test.cpp
@@ -103,7 +103,10 @@
 };
 
 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 @@
         SkDebugf("Finished %d tests, %d failures, %d skipped.\n",
                  count, failCount, skipCount);
     }
+
+    SkGraphics::Term();
+
     return (failCount == 0) ? 0 : 1;
 }