mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
talloc: change talloc destructor signature
Change talloc destructor so that they can never signal failure, and don't return a status code. This makes our talloc copy even more incompatible to upstream talloc, but on the other hand this is preparation for getting rid of talloc entirely. (The talloc replacement in the next commit won't allow the talloc_free equivalent to fail, and the destructor return value would be useless. But I don't want to change any mpv code either; the idea is that the talloc replacement commit can be reverted for some time in order to test whether the talloc replacement introduced a regression.)
This commit is contained in:
@@ -58,11 +58,10 @@ struct image_flags {
|
||||
bool pool_alive; // the mp_image_pool references this
|
||||
};
|
||||
|
||||
static int image_pool_destructor(void *ptr)
|
||||
static void image_pool_destructor(void *ptr)
|
||||
{
|
||||
struct mp_image_pool *pool = ptr;
|
||||
mp_image_pool_clear(pool);
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct mp_image_pool *mp_image_pool_new(int max_count)
|
||||
|
||||
Reference in New Issue
Block a user