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();