Skip to content

Commit

Permalink
For #783, use directly free to replace auto free
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Feb 25, 2017
1 parent b0d1684 commit 0059b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions trunk/conf/origin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ listen 19350;
max_connections 1000;
daemon off;
srs_log_tank console;
pid ./objs/origin.pid;
vhost __defaultVhost__ {
}
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1873,14 +1873,14 @@ int SrsSource::on_video(SrsCommonMessage* shared_video)
if (!m) {
return ret;
}
SrsAutoFree(SrsSharedPtrMessage, m);

// consume the monotonically increase message.
if (m->is_audio()) {
ret = on_audio_imp(m);
} else {
ret = on_video_imp(m);
}
srs_freep(m);

return ret;
}
Expand Down

0 comments on commit 0059b1c

Please sign in to comment.