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:
wm4
2013-10-13 01:16:30 +02:00
parent 8d5f800567
commit c613d802bc
8 changed files with 14 additions and 30 deletions

View File

@@ -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)