mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复bug
This commit is contained in:
parent
e021279fab
commit
6ef69d4ef1
@ -48,9 +48,9 @@ void release_pusher(mk_media *ptr) {
|
||||
|
||||
void release_context(Context **ptr){
|
||||
if (ptr && *ptr) {
|
||||
release_pusher((*ptr)->pusher);
|
||||
release_media((*ptr)->media);
|
||||
release_player((*ptr)->player);
|
||||
release_pusher(&(*ptr)->pusher);
|
||||
release_media(&(*ptr)->media);
|
||||
release_player(&(*ptr)->player);
|
||||
free(*ptr);
|
||||
*ptr = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user