wmail: fixed use-after-free.

The CleanupNames() function removed the sender-addresses for deleted
mails, but did not set the namesChanged flag to true.  This meant that
if the ticker was displaying the address of a mail which had been
deleted it would continue doing so after the address had been freed.
This commit is contained in:
Jeremy Sowden 2019-06-21 11:50:34 +01:00 committed by Carlos R. Mafra
parent c4eb6d91d2
commit d77e013060

View file

@ -1730,6 +1730,8 @@ static void CleanupNames( void )
free( name->name );
free( name );
namesChanged = true;
}
else
{