check for memory leaks in debug-build
git-svn-id: http://skia.googlecode.com/svn/trunk@4712 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
ddf98a8834
commit
a276975a62
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user