missed on checkin; avoid refcount leak for mCanvasElement

This commit is contained in:
vladimir%pobox.com 2005-04-18 08:34:02 +00:00
parent 5522de8726
commit 71f13a5600

View File

@ -113,7 +113,7 @@ protected:
PRInt32 mWidth, mHeight;
nsCOMPtr<nsIDOMHTMLCanvasElement> mDOMCanvasElement;
nsICanvasElement* mCanvasElement;
nsCOMPtr<nsICanvasElement> mCanvasElement;
// image bits
nsCOMPtr<gfxIImageFrame> mImageFrame;
@ -475,7 +475,7 @@ NS_IMETHODIMP
nsCanvasRenderingContext2D::Init(nsIDOMHTMLCanvasElement* aCanvasElement)
{
mDOMCanvasElement = aCanvasElement;
CallQueryInterface(mDOMCanvasElement, &mCanvasElement);
mCanvasElement = do_QueryInterface(mDOMCanvasElement);
// set up our css parser
if (!mCSSParser) {