avutil/buffer: free all pooled buffers immediately after uninitializing the pool
No buffer will be fetched from the pool after it's uninitialized, so there's no benefit from waiting until every single buffer has been returned to it before freeing them all. This should free some memory in certain scenarios, which can be beneficial in low memory systems. Based on a patch by Jonas Karlman. Reviewed-by: NAnton Khirnov <anton@khirnov.net> Signed-off-by: NJames Almer <jamrial@gmail.com>
Showing
想要评论请 注册 或 登录