]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] fix shutdown crash when core running with MINIMAL flag
authorSeven Du <dujinfang@gmail.com>
Sun, 13 Oct 2019 11:06:30 +0000 (19:06 +0800)
committerAndrey Volk <andywolk@gmail.com>
Thu, 21 Nov 2019 18:05:43 +0000 (22:05 +0400)
src/switch_core_media.c

index 81a3e8591ead8159912e7ed8f110c266130623dd..e55ae8aad743ca25fdba35027c0c3f1c3662173a 100644 (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)