mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
ST: Support st_destroy to free resources for asan.
This commit is contained in:
parent
6eb10afca2
commit
6fa17aa3f8
5 changed files with 39 additions and 4 deletions
9
trunk/3rdparty/st-srs/sched.c
vendored
9
trunk/3rdparty/st-srs/sched.c
vendored
|
@ -229,6 +229,15 @@ int st_init(void)
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
* Destroy this Virtual Processor
|
||||
*/
|
||||
void st_destroy(void)
|
||||
{
|
||||
(*_st_eventsys->destroy)();
|
||||
}
|
||||
|
||||
|
||||
#ifdef ST_SWITCH_CB
|
||||
st_switch_cb_t st_set_switch_in_cb(st_switch_cb_t cb)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue