From 03dd6fd8128ef18f2fcf46fa5161219c12feb1f6 Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Thu, 10 Oct 2019 13:26:18 -0700 Subject: [PATCH] add an explicit cast --- image/decoders/nsPNGDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/decoders/nsPNGDecoder.cpp b/image/decoders/nsPNGDecoder.cpp index bcdbcbc37e..52066fdf96 100644 --- a/image/decoders/nsPNGDecoder.cpp +++ b/image/decoders/nsPNGDecoder.cpp @@ -1190,7 +1190,7 @@ nsPNGDecoder::ReadPNGData(const char* aData, size_t aLength) d_png_process_data(mPNG, mInfo, reinterpret_cast(const_cast((aData_sandbox))), aLength); - freeInPngSandbox(aData_sandbox); + freeInPngSandbox(const_cast(aData_sandbox)); #endif PngBench.Stop();