Commit 4ca4c7e8 authored by Thomas Guillem's avatar Thomas Guillem

vlc_bits: add bo_deinit

parent fadb01ca
......@@ -217,12 +217,17 @@ static inline bool bo_init(bo_t *p_bo, int i_size)
return true;
}
static inline void bo_deinit(bo_t *p_bo)
{
if(p_bo->b)
block_Release(p_bo->b);
}
static inline void bo_free(bo_t *p_bo)
{
if(!p_bo)
return;
if(p_bo->b)
block_Release(p_bo->b);
bo_deinit(p_bo);
free(p_bo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment