Bug 577229 nsPNGEncoder::mImageBufferReadPoint will be initialized after nsPNGEncoder::mFinished
authortimeless@mozdev.org
Wed, 07 Jul 2010 12:35:29 +0300
changeset 47325 9c1ac55cd5b7635479cbcdbd921b72708196cde8
parent 47324 f97c5328098b70dd7548af69ab0608ea738d4184
child 47326 6fab4ffed4f712c61ef9680e1e170cee3801a1e8
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs577229
milestone2.0b2pre
first release with
nightly win64
9c1ac55cd5b7 / 4.0b2pre / 20100712054416 / files
nightly linux32
nightly linux64
nightly mac
nightly win32
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win64
Bug 577229 nsPNGEncoder::mImageBufferReadPoint will be initialized after nsPNGEncoder::mFinished r=jmuizelaar
modules/libpr0n/encoders/png/nsPNGEncoder.cpp
--- a/modules/libpr0n/encoders/png/nsPNGEncoder.cpp
+++ b/modules/libpr0n/encoders/png/nsPNGEncoder.cpp
@@ -45,19 +45,20 @@
 #include "prprf.h"
 #include "nsString.h"
 #include "nsStreamUtils.h"
 
 NS_IMPL_THREADSAFE_ISUPPORTS3(nsPNGEncoder, imgIEncoder, nsIInputStream, nsIAsyncInputStream)
 
 nsPNGEncoder::nsPNGEncoder() : mPNG(nsnull), mPNGinfo(nsnull),
                                mIsAnimation(PR_FALSE),
+                               mFinished(PR_FALSE),
                                mImageBuffer(nsnull), mImageBufferSize(0),
                                mImageBufferUsed(0), mImageBufferReadPoint(0),
-                               mFinished(PR_FALSE), mCallback(nsnull),
+                               mCallback(nsnull),
                                mCallbackTarget(nsnull), mNotifyThreshold(0),
                                mMonitor("PNG Encoder Monitor")
 {
 }
 
 nsPNGEncoder::~nsPNGEncoder()
 {
   if (mImageBuffer) {