mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Don't use error after free
We need to reset the error pointer to NULL for this to work. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									396106e307
								
							
						
					
					
						commit
						f693bbd7a0
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -983,6 +983,7 @@ void MainWindow::loadFiles(const QStringList fileNames) | |||
| 			failedParses.append(fileNames.at(i)); | ||||
| 			showError(error); | ||||
| 			free(error); | ||||
| 			error = NULL; | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue