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

For #307, fix some memory leaking

This commit is contained in:
winlin 2020-04-07 19:47:04 +08:00
parent a8cc3a3430
commit 32d5b75d8c
2 changed files with 8 additions and 14 deletions

View file

@ -256,7 +256,7 @@ public:
// Internal only.
public:
srs_error_t send_and_free_messages(srs_netfd_t stfd, const std::vector<mmsghdr>& msgs);
void clear();
void free_messages(std::vector<mmsghdr>& hdrs);
virtual srs_error_t cycle();
};