summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-12-15 08:47:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-12-15 08:47:28 +0100
commit8102008ebd5ae8389ff227ba3b06de42316c8517 (patch)
treef8c766b9c564df78daacc87652ece33271a744ae /vcl
parentd59f411bf2920626c4d55b0477bd7bb3db8dae51 (diff)
Memory leak
Change-Id: I1e3678ca14b502b36c1ab698910c13179e83beb4
Diffstat (limited to 'vcl')
-rw-r--r--vcl/generic/app/gendisp.cxx5
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;
}