From 7defbfadbef795f802362c2ca6758ed6994ed1fe Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 1 Feb 2013 19:18:47 -0800 Subject: [PATCH] encode.h: note the need to free() WebPMemoryWriter Change-Id: Iec873764e9f4c085c634498630b8c1ced3283984 --- src/webp/encode.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webp/encode.h b/src/webp/encode.h index 60a08ba3..8b2fb25b 100644 --- a/src/webp/encode.h +++ b/src/webp/encode.h @@ -214,6 +214,7 @@ WEBP_EXTERN(void) WebPMemoryWriterInit(WebPMemoryWriter* writer); // The custom writer to be used with WebPMemoryWriter as custom_ptr. Upon // completion, writer.mem and writer.size will hold the coded data. +// writer.mem must be freed using the call 'free(writer.mem)'. WEBP_EXTERN(int) WebPMemoryWrite(const uint8_t* data, size_t data_size, const WebPPicture* picture);