[core] fix shutdown crash when core running with MINIMAL flag

This commit is contained in:
Seven Du 2019-10-13 19:06:30 +08:00 committed by Andrey Volk
parent 66aa064588
commit 254fda292a

View File

@ -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)