зеркало из https://github.com/mozilla/gecko-dev.git
Bug 302445. Don't hold a strong reference to the device context from nsBlender --- this prevents leaking the device context in some cases where frames leak. r+sr=dbaron,a=bsmedberg
This commit is contained in:
Родитель
c77df217d1
Коммит
2b4becb59d
|
@ -45,7 +45,6 @@
|
|||
*/
|
||||
nsBlender :: nsBlender()
|
||||
{
|
||||
mContext = nsnull;
|
||||
}
|
||||
|
||||
/** ---------------------------------------------------
|
||||
|
@ -98,8 +97,6 @@ NS_IMPL_ISUPPORTS1(nsBlender, nsIBlender)
|
|||
NS_IMETHODIMP
|
||||
nsBlender::Init(nsIDeviceContext *aContext)
|
||||
{
|
||||
mContext = aContext;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -140,8 +140,6 @@ protected:
|
|||
void Do16Blend(float aOpacity, PRInt32 aNumLines, PRInt32 aNumBytes,
|
||||
PRUint8 *aSImage, PRUint8 *aDImage, PRUint8 *aSecondSImage,
|
||||
PRInt32 aSLSpan, PRInt32 aDLSpan, nsBlendQuality aBlendQuality);
|
||||
|
||||
nsCOMPtr<nsIDeviceContext> mContext;
|
||||
};
|
||||
|
||||
#endif /* !nsBlender_h___ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче