mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
loader SvgLoader: return null if transform attribute invalid
In transform matrix parsing, null is returned if any of the matrices are invalid.
This commit is contained in:
parent
d3a73f7ee9
commit
b75e7ea91a
1 changed files with 3 additions and 1 deletions
|
@ -659,8 +659,10 @@ static Matrix* _parseTransformationMatrix(const char* value)
|
||||||
_matrixCompose(matrix, &tmp, matrix);
|
_matrixCompose(matrix, &tmp, matrix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
error:
|
|
||||||
return matrix;
|
return matrix;
|
||||||
|
error:
|
||||||
|
if (matrix) free(matrix);
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue