mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix mem leak of encoder, edge and source. add destroy for gmc to detect mem leak. to 0.9.89
This commit is contained in:
parent
9a1c478266
commit
96a5c7b1ab
11 changed files with 145 additions and 90 deletions
|
@ -31,10 +31,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <srs_core.hpp>
|
||||
|
||||
#include <srs_app_st.hpp>
|
||||
#include <srs_app_thread.hpp>
|
||||
|
||||
class SrsServer;
|
||||
class SrsConnection
|
||||
class SrsConnection : public ISrsThreadHandler
|
||||
{
|
||||
private:
|
||||
SrsThread* pthread;
|
||||
protected:
|
||||
char* ip;
|
||||
SrsServer* server;
|
||||
|
@ -45,13 +48,13 @@ public:
|
|||
virtual ~SrsConnection();
|
||||
public:
|
||||
virtual int start();
|
||||
virtual int cycle();
|
||||
virtual void on_thread_stop();
|
||||
protected:
|
||||
virtual int do_cycle() = 0;
|
||||
virtual void stop();
|
||||
protected:
|
||||
virtual int get_peer_ip();
|
||||
private:
|
||||
virtual void cycle();
|
||||
static void* cycle_thread(void* arg);
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue