mpegts: add assert to mpegts_table_release() to check refcount
This commit is contained in:
parent
8b22c3fc0d
commit
05d6da39a5
1 changed files with 1 additions and 0 deletions
|
@ -766,6 +766,7 @@ void mpegts_table_release_
|
|||
static inline void mpegts_table_release
|
||||
(mpegts_table_t *mt)
|
||||
{
|
||||
assert(mt->mt_refcount > 0);
|
||||
if(--mt->mt_refcount == 0) mpegts_table_release_(mt);
|
||||
}
|
||||
mpegts_table_t *mpegts_table_add
|
||||
|
|
Loading…
Add table
Reference in a new issue