修复bug

This commit is contained in:
xia-chu 2021-04-28 17:32:16 +08:00
parent 86afa379c4
commit adc3d74344

View File

@ -48,9 +48,9 @@ void release_pusher(mk_media *ptr) {
void release_context(Context **ptr){ void release_context(Context **ptr){
if (ptr && *ptr) { if (ptr && *ptr) {
release_pusher((*ptr)->pusher); release_pusher(&(*ptr)->pusher);
release_media((*ptr)->media); release_media(&(*ptr)->media);
release_player((*ptr)->player); release_player(&(*ptr)->player);
free(*ptr); free(*ptr);
*ptr = NULL; *ptr = NULL;
} }