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
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -1730,6 +1730,8 @@ static void CleanupNames( void )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	    free( name->name );
 | 
						    free( name->name );
 | 
				
			||||||
	    free( name );
 | 
						    free( name );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						    namesChanged = true;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue