diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-14 18:01:15 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-03-15 14:36:53 +0000 |
commit | eaaca6eaf26b0976f1c06f583a8aa35ee1c1b857 (patch) | |
tree | 6ca5d3180e532046c407b16dbd0b55de9584be41 /vcl | |
parent | 15849b8b66cd2c4e295204200b824bd1d12c48de (diff) |
fix memory leak in headless backend
Reviewed-on: https://gerrit.libreoffice.org/23248
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
(cherry picked from commit c62afab9d4138583eb22afe46608b323f902f095)
Change-Id: I90282c86b45845fc35b23b275301be24a2f18a4d
Reviewed-on: https://gerrit.libreoffice.org/23261
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/svpinst.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx index 0d765c19fa5c..12ef4e5263ca 100644 --- a/vcl/headless/svpinst.cxx +++ b/vcl/headless/svpinst.cxx @@ -150,8 +150,12 @@ void SvpSalInstance::deregisterFrame( SalFrame* pFrame ) std::list< SalUserEvent >::iterator it = m_aUserEvents.begin(); do { - if( it->m_pFrame == pFrame ) + if( it->m_pFrame == pFrame ) { + if (it->m_nEvent == SALEVENT_USEREVENT) + { + delete static_cast<ImplSVEvent *>(it->m_pData); + } it = m_aUserEvents.erase( it ); } else |