Skip to content

~CairoOutputDev(): Free textClipPath

Uli Schlachter requested to merge psychon/poppler:cairo-leak-textClipPath into master

The textClipPath member is set in CairoOutputDev::endString() and freed in CairoOutputDev::endTextObject(). However, if endTextObject() is not called for whatever reason, the path will just be leaked.

This adds code to the destructor to free this.

Testing done: None. I do not even have the necessary build dependencies for poppler installed.

This likely fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32326 but as written above: I did not test this.

Signed-off-by: Uli Schlachter psychon@znc.in

Merge request reports