Perf: Fix ordering of core deinitialization
Jeffrey Pfau jeffrey@endrift.com
Tue, 09 Aug 2016 02:06:03 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/platform/test/perf-main.c
→
src/platform/test/perf-main.c
@@ -177,6 +177,8 @@ gettimeofday(&tv, 0);
uint64_t end = 1000000LL * tv.tv_sec + tv.tv_usec; uint64_t duration = end - start; + mCoreConfigFreeOpts(&opts); + mCoreConfigDeinit(&core->config); core->deinit(core); float scaledFrames = frames * 1000000.f;@@ -197,8 +199,6 @@ } else {
printf("%u frames in %" PRIu64 " microseconds: %g fps (%gx)\n", frames, duration, scaledFrames / duration, scaledFrames / (duration * 60.f)); } - mCoreConfigFreeOpts(&opts); - mCoreConfigDeinit(&core->config); return true; }