diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-04 22:54:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-02-05 08:42:23 +0100 |
commit | ef1e14db395b7850957534246b2960356b1b2bb7 (patch) | |
tree | afe0625554b33a61a961ba051a1375fbed66e4a6 /include | |
parent | 5986ab58db89ee73dc1bc30a7f3800ccb598a3b6 (diff) |
ofz#66471 Direct-leak
when a cairo surface gets into an error state typically none of the
functions do anything any more, so this leak is because of an invalid
uninvertable matrix which comes from a 0 x denom in the svm MapMode,
so detect the problem there at the outer boundary.
Change-Id: Idedc29b48f2be3853064b4369727bc91082c5a87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162980
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/TypeSerializer.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/TypeSerializer.hxx b/include/vcl/TypeSerializer.hxx index e85b25b1cfe3..433dbc058eb1 100644 --- a/include/vcl/TypeSerializer.hxx +++ b/include/vcl/TypeSerializer.hxx @@ -51,7 +51,7 @@ public: void readGraphic(Graphic& rGraphic); void writeGraphic(const Graphic& rGraphic); - void readMapMode(MapMode& rMapMode); + bool readMapMode(MapMode& rMapMode); void writeMapMode(MapMode const& rMapMode); }; |