From 254fda292a5236e6b73f57e5bab922d040301d28 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Sun, 13 Oct 2019 19:06:30 +0800 Subject: [PATCH] [core] fix shutdown crash when core running with MINIMAL flag --- src/switch_core_media.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 81a3e8591e..e55ae8aad7 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -14069,7 +14069,9 @@ SWITCH_DECLARE(void) switch_core_media_init(void) SWITCH_DECLARE(void) switch_core_media_deinit(void) { - switch_core_destroy_memory_pool(&video_globals.pool); + if (video_globals.pool) { + switch_core_destroy_memory_pool(&video_globals.pool); + } } static int payload_number(const char *name)