正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
@@ -1873,7 +1873,6 @@ int SrsSource::on_video(SrsCommonMessage* shared_video) | @@ -1873,7 +1873,6 @@ int SrsSource::on_video(SrsCommonMessage* shared_video) | ||
1873 | if (!m) { | 1873 | if (!m) { |
1874 | return ret; | 1874 | return ret; |
1875 | } | 1875 | } |
1876 | - SrsAutoFree(SrsSharedPtrMessage, m); | ||
1877 | 1876 | ||
1878 | // consume the monotonically increase message. | 1877 | // consume the monotonically increase message. |
1879 | if (m->is_audio()) { | 1878 | if (m->is_audio()) { |
@@ -1881,6 +1880,7 @@ int SrsSource::on_video(SrsCommonMessage* shared_video) | @@ -1881,6 +1880,7 @@ int SrsSource::on_video(SrsCommonMessage* shared_video) | ||
1881 | } else { | 1880 | } else { |
1882 | ret = on_video_imp(m); | 1881 | ret = on_video_imp(m); |
1883 | } | 1882 | } |
1883 | + srs_freep(m); | ||
1884 | 1884 | ||
1885 | return ret; | 1885 | return ret; |
1886 | } | 1886 | } |
-
请 注册 或 登录 后发表评论