mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 338312 - destruction of an object with paint server set could crash.
r+sr=roc
This commit is contained in:
parent
4a5c599083
commit
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:
|
||||
|
Loading…
Reference in New Issue
Block a user