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

For #783, use directly free to replace auto free

This commit is contained in:
winlin 2017-02-25 11:18:54 +08:00
parent b0d16840b5
commit 0059b1cf7a
2 changed files with 2 additions and 1 deletions

View file

@ -1873,7 +1873,6 @@ int SrsSource::on_video(SrsCommonMessage* shared_video)
if (!m) {
return ret;
}
SrsAutoFree(SrsSharedPtrMessage, m);
// consume the monotonically increase message.
if (m->is_audio()) {
@ -1881,6 +1880,7 @@ int SrsSource::on_video(SrsCommonMessage* shared_video)
} else {
ret = on_video_imp(m);
}
srs_freep(m);
return ret;
}