winlin

For #783, use directly free to replace auto free

... ... @@ -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;
}
... ...