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;
|
max_connections 1000;
|
||||||
daemon off;
|
daemon off;
|
||||||
srs_log_tank console;
|
srs_log_tank console;
|
||||||
|
pid ./objs/origin.pid;
|
||||||
vhost __defaultVhost__ {
|
vhost __defaultVhost__ {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1873,7 +1873,6 @@ int SrsSource::on_video(SrsCommonMessage* shared_video)
|
||||||
if (!m) {
|
if (!m) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
SrsAutoFree(SrsSharedPtrMessage, m);
|
|
||||||
|
|
||||||
// consume the monotonically increase message.
|
// consume the monotonically increase message.
|
||||||
if (m->is_audio()) {
|
if (m->is_audio()) {
|
||||||
|
@ -1881,6 +1880,7 @@ int SrsSource::on_video(SrsCommonMessage* shared_video)
|
||||||
} else {
|
} else {
|
||||||
ret = on_video_imp(m);
|
ret = on_video_imp(m);
|
||||||
}
|
}
|
||||||
|
srs_freep(m);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue