From: Seven Du Date: Sun, 13 Oct 2019 11:06:30 +0000 (+0800) Subject: [core] fix shutdown crash when core running with MINIMAL flag X-Git-Tag: v1.10.2^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=254fda292a5236e6b73f57e5bab922d040301d28;p=thirdparty%2Ffreeswitch.git [core] fix shutdown crash when core running with MINIMAL flag --- 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)