зеркало из https://github.com/mozilla/pjs.git
Bug 419096 - "getPathSegAtLength() causes nsSVGPathSegMovetoAbs to leak" [p=longsonr@gmail.com (Robert Longson) r+sr=roc a1.9=damons]
This commit is contained in:
Родитель
65fe7dd59d
Коммит
844f2d62b5
|
@ -151,9 +151,9 @@ nsSVGPathElement::GetPathSegAtLength(float distance, PRUint32 *_retval)
|
|||
// because if distance is longer than the total length of the path we return
|
||||
// the index of the final segment anyway.
|
||||
while (distCovered < distance && i < numSegments - 1) {
|
||||
nsIDOMSVGPathSeg *iSeg;
|
||||
mSegments->GetItem(i, &iSeg);
|
||||
nsSVGPathSeg* curSeg = static_cast<nsSVGPathSeg*>(iSeg);
|
||||
nsCOMPtr<nsIDOMSVGPathSeg> segment;
|
||||
mSegments->GetItem(i, getter_AddRefs(segment));
|
||||
nsSVGPathSeg* curSeg = static_cast<nsSVGPathSeg*>(segment.get());
|
||||
if (i == 0) {
|
||||
curSeg->GetLength(&ts);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче