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:
alex.fritze%crocodile-clips.com
2004-02-25 22:28:23 +00:00
parent 08fc73183f
commit 9dc9539a47

View File

@@ -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);
}
}