From 2624fb634f0769668f16b3b10b4b5c0a2e5a5755 Mon Sep 17 00:00:00 2001 From: "timeless@mozdev.org" Date: Wed, 7 Jul 2010 12:38:40 +0300 Subject: [PATCH] Bug 577230 nsJPEGEncoder::mImageBufferReadPoint will be initialized after nsJPEGEncoder::mFinished r=jmuizelaar --HG-- extra : rebase_source : 4749619bdf1ffad836353da6d22a9f37377d8080 --- modules/libpr0n/encoders/jpeg/nsJPEGEncoder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/libpr0n/encoders/jpeg/nsJPEGEncoder.cpp b/modules/libpr0n/encoders/jpeg/nsJPEGEncoder.cpp index 98426070b0f..fb5020e4172 100644 --- a/modules/libpr0n/encoders/jpeg/nsJPEGEncoder.cpp +++ b/modules/libpr0n/encoders/jpeg/nsJPEGEncoder.cpp @@ -53,9 +53,10 @@ struct encoder_error_mgr { jmp_buf setjmp_buffer; }; -nsJPEGEncoder::nsJPEGEncoder() : mImageBuffer(nsnull), mImageBufferSize(0), +nsJPEGEncoder::nsJPEGEncoder() : mFinished(PR_FALSE), + mImageBuffer(nsnull), mImageBufferSize(0), mImageBufferUsed(0), mImageBufferReadPoint(0), - mFinished(PR_FALSE), mCallback(nsnull), + mCallback(nsnull), mCallbackTarget(nsnull), mNotifyThreshold(0), mMonitor("JPEG Encoder Monitor") {