[Libreoffice-bugs] [Bug 106265] Scrolling font list with previews enabled makes LO crash ( steps in comment 36 )

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat May 6 13:16:21 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=106265

--- Comment #48 from Noel Grandin <noelgrandin at gmail.com> ---
@Aron I think you are on to something. That function has several return paths
where it forgets to delete/deallocate hNewDC and hNonAntialiasedFont.
Would probably be best to wrap both of them in a RAII style delete on return
thing.
The comphelper/scopeguard.hxx class is made for that.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170506/21510d97/attachment.html>


More information about the Libreoffice-bugs mailing list