修复bug

This commit is contained in:
xia-chu 2021-04-28 17:32:16 +08:00
parent e021279fab
commit 6ef69d4ef1

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;
} }