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:
parent
b0d16840b5
commit
0059b1cf7a
2 changed files with 2 additions and 1 deletions
|
@ -6,5 +6,6 @@ listen 19350;
|
|||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
pid ./objs/origin.pid;
|
||||
vhost __defaultVhost__ {
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue