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:
parent
c4eb6d91d2
commit
d77e013060
|
@ -1730,6 +1730,8 @@ static void CleanupNames( void )
|
|||
|
||||
free( name->name );
|
||||
free( name );
|
||||
|
||||
namesChanged = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue