diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-12-15 08:47:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-12-15 08:47:28 +0100 |
commit | 8102008ebd5ae8389ff227ba3b06de42316c8517 (patch) | |
tree | f8c766b9c564df78daacc87652ece33271a744ae /vcl | |
parent | d59f411bf2920626c4d55b0477bd7bb3db8dae51 (diff) |
Memory leak
Change-Id: I1e3678ca14b502b36c1ab698910c13179e83beb4
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/app/gendisp.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/generic/app/gendisp.cxx b/vcl/generic/app/gendisp.cxx index 3d3a52a4003f..ca985aaf6083 100644 --- a/vcl/generic/app/gendisp.cxx +++ b/vcl/generic/app/gendisp.cxx @@ -47,7 +47,12 @@ void SalGenericDisplay::deregisterFrame( SalFrame* pFrame ) while ( it != m_aUserEvents.end() ) { if( it->m_pFrame == pFrame ) + { + if (it->m_nEvent == SALEVENT_USEREVENT) { + delete static_cast<ImplSVEvent *>(it->m_pData); + } it = m_aUserEvents.erase( it ); + } else ++it; } |