mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
missed on checkin; avoid refcount leak for mCanvasElement
This commit is contained in:
parent
5522de8726
commit
71f13a5600
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user