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

for memory leak detect, move the payload create to message.

This commit is contained in:
winlin 2015-06-09 10:13:25 +08:00
parent 863dddde09
commit f347099fd1
3 changed files with 18 additions and 7 deletions

View file

@ -283,8 +283,12 @@ public:
char* payload;
public:
SrsCommonMessage();
public:
virtual ~SrsCommonMessage();
public:
/**
* alloc the payload to specified size of bytes.
*/
virtual void create_payload(int size);
};
/**