From 0f3941c586452a9603d54dd07031c48097c8d051 Mon Sep 17 00:00:00 2001 From: bennylp Date: Wed, 18 Dec 2024 10:30:51 +0700 Subject: [PATCH] Fixed port double destruction in mips_test() and include benchmark tests in pj/config_site_test.h --- pjlib/include/pj/config_site_test.h | 2 +- pjmedia/src/test/mips_test.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pjlib/include/pj/config_site_test.h b/pjlib/include/pj/config_site_test.h index d8bc9595ee..8fb2599d66 100644 --- a/pjlib/include/pj/config_site_test.h +++ b/pjlib/include/pj/config_site_test.h @@ -8,4 +8,4 @@ #define PJMEDIA_CODEC_L16_HAS_48KHZ_STEREO 1 #define PJMEDIA_HAS_G7221_CODEC 1 #define PJMEDIA_HAS_G722_CODEC 1 -#define PJ_EXCLUDE_BENCHMARK_TESTS 1 +#define PJ_EXCLUDE_BENCHMARK_TESTS 0 diff --git a/pjmedia/src/test/mips_test.c b/pjmedia/src/test/mips_test.c index d1518fc41d..25f89bfcbe 100644 --- a/pjmedia/src/test/mips_test.c +++ b/pjmedia/src/test/mips_test.c @@ -2388,8 +2388,8 @@ static pj_timestamp run_entry(unsigned clock_rate, struct test_entry *e) if (e->custom_deinit) e->custom_deinit(e); - - pjmedia_port_destroy(port); + else + pjmedia_port_destroy(port); pj_pool_release(pool); return t1;