Bug 1123004 - Mark ReadSegmentsState as stack class, and its mThisStream member as nsCOMPtr; r=froydnj

This commit is contained in:
Ehsan Akhgari 2015-01-17 21:00:34 -05:00
parent 1159fbcef9
commit 6c67942f1f
2 changed files with 4 additions and 4 deletions

View File

@ -45,8 +45,8 @@ private:
void InitStreams();
struct ReadSegmentsState {
nsIInputStream* mThisStream;
struct MOZ_STACK_CLASS ReadSegmentsState {
nsCOMPtr<nsIInputStream> mThisStream;
nsWriteSegmentFun mWriter;
void* mClosure;
};

View File

@ -46,9 +46,9 @@ private:
{
}
struct ReadSegmentsState
struct MOZ_STACK_CLASS ReadSegmentsState
{
nsIInputStream* mThisStream;
nsCOMPtr<nsIInputStream> mThisStream;
uint32_t mOffset;
nsWriteSegmentFun mWriter;
void* mClosure;