Bug 398926 - nsWeakReference leak with stroke and fill using the same pattern.
r+sr+a=roc git-svn-id: svn://10.0.0.236/trunk@237493 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
97639c316d
commit
ad23a889c5
@ -108,8 +108,10 @@ nsSVGValue::AddObserver(nsISVGValueObserver* observer)
|
||||
// stroke and fill. Safe, as on a style change we remove both, as
|
||||
// the change notification isn't fine grained, and re-add as
|
||||
// appropriate.
|
||||
if (mObservers.IndexOf((void*)wr) >= 0)
|
||||
if (mObservers.IndexOf((void*)wr) >= 0) {
|
||||
NS_RELEASE(wr);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
mObservers.AppendElement((void*)wr);
|
||||
return NS_OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user