diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-14 18:01:15 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-03-14 17:47:47 +0000 |
commit | c62afab9d4138583eb22afe46608b323f902f095 (patch) | |
tree | d49b1188d2b1b6dd97d6ab738c68f335e0d83b99 /vcl | |
parent | 032cb7ed80a504b4abec479f30c2c03f10e14639 (diff) |
fix memory leak in headless backend
Change-Id: I90282c86b45845fc35b23b275301be24a2f18a4d
Reviewed-on: https://gerrit.libreoffice.org/23248
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@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 ed3159ae543c..0c71f6330376 100644 --- a/vcl/headless/svpinst.cxx +++ b/vcl/headless/svpinst.cxx @@ -142,8 +142,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 |