mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-09 04:40:38 +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){
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user