зеркало из https://github.com/mozilla/gecko-dev.git
Bug 338312 - destruction of an object with paint server set could crash.
r+sr=roc
This commit is contained in:
Родитель
4a5c599083
Коммит
1308778490
|
@ -56,12 +56,16 @@ nsSVGGeometryFrame::nsSVGGeometryFrame(nsStyleContext* aContext)
|
|||
{
|
||||
}
|
||||
|
||||
nsSVGGeometryFrame::~nsSVGGeometryFrame()
|
||||
void
|
||||
nsSVGGeometryFrame::Destroy()
|
||||
{
|
||||
// Do this here instead of in the destructor, so virtual calls still work
|
||||
if (mFillServer)
|
||||
mFillServer->RemoveObserver(this);
|
||||
if (mStrokeServer)
|
||||
mStrokeServer->RemoveObserver(this);
|
||||
|
||||
nsSVGGeometryFrameBase::Destroy();
|
||||
}
|
||||
|
||||
nsSVGPaintServerFrame *
|
||||
|
|
|
@ -59,9 +59,9 @@ class nsSVGGeometryFrame : public nsSVGGeometryFrameBase,
|
|||
{
|
||||
public:
|
||||
nsSVGGeometryFrame(nsStyleContext *aContext);
|
||||
~nsSVGGeometryFrame();
|
||||
|
||||
// nsIFrame interface:
|
||||
virtual void Destroy();
|
||||
NS_IMETHOD DidSetStyleContext();
|
||||
|
||||
// nsISupports interface:
|
||||
|
|
Загрузка…
Ссылка в новой задаче