summaryrefslogtreecommitdiff
path: root/thirdparty/libwebp/src/utils/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/libwebp/src/utils/utils.c')
-rw-r--r--thirdparty/libwebp/src/utils/utils.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/thirdparty/libwebp/src/utils/utils.c b/thirdparty/libwebp/src/utils/utils.c
index 44d5c14f01..764f752b82 100644
--- a/thirdparty/libwebp/src/utils/utils.c
+++ b/thirdparty/libwebp/src/utils/utils.c
@@ -216,9 +216,14 @@ void WebPSafeFree(void* const ptr) {
free(ptr);
}
-// Public API function.
+// Public API functions.
+
+void* WebPMalloc(size_t size) {
+ return WebPSafeMalloc(1, size);
+}
+
void WebPFree(void* ptr) {
- free(ptr);
+ WebPSafeFree(ptr);
}
//------------------------------------------------------------------------------