1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #752, release the io then free it for kbps. 2.0.232

This commit is contained in:
winlin 2017-01-22 13:12:56 +08:00
parent 80dfe601b1
commit 6706bda42c
5 changed files with 19 additions and 13 deletions

View file

@ -110,9 +110,9 @@ void SrsEdgeIngester::stop()
close_underlayer_socket();
kbps->set_io(NULL, NULL);
srs_freep(client);
srs_freep(io);
kbps->set_io(NULL, NULL);
// notice to unpublish.
_source->on_unpublish();
@ -376,6 +376,7 @@ int SrsEdgeIngester::connect_server(string& ep_server, string& ep_port)
return ret;
}
kbps->set_io(NULL, NULL);
srs_freep(client);
srs_freep(io);
@ -478,9 +479,9 @@ void SrsEdgeForwarder::stop()
queue->clear();
kbps->set_io(NULL, NULL);
srs_freep(client);
srs_freep(io);
kbps->set_io(NULL, NULL);
}
#define SYS_MAX_EDGE_SEND_MSGS 128
@ -626,6 +627,7 @@ int SrsEdgeForwarder::connect_server(string& ep_server, string& ep_port)
return ret;
}
kbps->set_io(NULL, NULL);
srs_freep(client);
srs_freep(io);