Make sure path segs get deleted from correct array on parse failure. Not part of default builds - svg only.
git-svn-id: svn://10.0.0.236/trunk@153239 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -149,7 +149,7 @@ nsSVGPathSegList::SetValueString(const nsAString& aValue)
|
||||
NS_ERROR("path data parse error!");
|
||||
PRInt32 count = data.Count();
|
||||
for (PRInt32 i=0; i<count; ++i) {
|
||||
nsIDOMSVGPathSeg* seg = ElementAt(i);
|
||||
nsIDOMSVGPathSeg* seg = (nsIDOMSVGPathSeg*)data.ElementAt(i);
|
||||
NS_RELEASE(seg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user