Skip to content

Commit

Permalink
small fix for nanobench segfault when not running any tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshualitt authored and Commit bot committed Mar 26, 2015
1 parent 9665eee commit e0b19d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bench/nanobench.cpp
Expand Up @@ -894,6 +894,12 @@ int nanobench_main() {
log->config("meta");
log->metric("max_rss_mb", sk_tools::getMaxResidentSetSizeMB());

#if SK_SUPPORT_GPU
// Make sure we clean up the global GrContextFactory here, otherwise we might race with the
// SkEventTracer destructor
gGrFactory.reset(NULL);
#endif

return 0;
}

Expand Down

0 comments on commit e0b19d4

Please sign in to comment.