mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
修复bug
This commit is contained in:
parent
86afa379c4
commit
adc3d74344
@ -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