From a15f120c4ff2824b71301d5c270288b74bb2aa37 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 25 May 2025 19:12:13 +0300 Subject: libtox: update to 2.2.1 --- protocols/Tox/libtox/src/toxcore/mem.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/libtox/src/toxcore/mem.c') diff --git a/protocols/Tox/libtox/src/toxcore/mem.c b/protocols/Tox/libtox/src/toxcore/mem.c index bddc335b82..32e7eec07c 100644 --- a/protocols/Tox/libtox/src/toxcore/mem.c +++ b/protocols/Tox/libtox/src/toxcore/mem.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-3.0-or-later - * Copyright © 2016-2018 The TokTok team. + * Copyright © 2016-2025 The TokTok team. * Copyright © 2013 Tox project. */ @@ -53,6 +53,12 @@ void *mem_balloc(const Memory *mem, uint32_t size) return ptr; } +void *mem_brealloc(const Memory *mem, void *ptr, uint32_t size) +{ + void *const new_ptr = mem->funcs->realloc(mem->obj, ptr, size); + return new_ptr; +} + void *mem_alloc(const Memory *mem, uint32_t size) { void *const ptr = mem->funcs->calloc(mem->obj, 1, size); -- cgit v1.2.3