summaryrefslogtreecommitdiff
path: root/thirdparty/libwebp/src/mux/muxedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/libwebp/src/mux/muxedit.c')
-rw-r--r--thirdparty/libwebp/src/mux/muxedit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thirdparty/libwebp/src/mux/muxedit.c b/thirdparty/libwebp/src/mux/muxedit.c
index 02c3edecd7..63e71a0aba 100644
--- a/thirdparty/libwebp/src/mux/muxedit.c
+++ b/thirdparty/libwebp/src/mux/muxedit.c
@@ -70,6 +70,7 @@ void WebPMuxDelete(WebPMux* mux) {
err = ChunkAssignData(&chunk, data, copy_data, tag); \
if (err == WEBP_MUX_OK) { \
err = ChunkSetHead(&chunk, (LIST)); \
+ if (err != WEBP_MUX_OK) ChunkRelease(&chunk); \
} \
return err; \
}