Bug 968542 - Prevent IPC blobs from entraining ContentParent objects. r=bent

This commit is contained in:
Kyle Huey 2014-02-07 16:14:59 -08:00
parent 8e4c34ac59
commit 43a19a73a5

View File

@ -955,6 +955,8 @@ private:
MOZ_ASSERT(!mSlice);
MOZ_ASSERT(!mDone);
NS_ENSURE_TRUE_VOID(mActor->Manager());
NormalBlobConstructorParams normalParams;
normalParams.contentType() = mContentType;
normalParams.length() = mLength;
@ -1352,6 +1354,8 @@ Blob<ActorFlavor>::ActorDestroy(ActorDestroyReason aWhy)
if (mBlob && mOwnsBlob) {
mBlob->Release();
}
mManager = nullptr;
}
template <ActorFlavorEnum ActorFlavor>