plug memory leak

This commit is contained in:
Oswald Buddenhagen
2009-12-04 21:18:30 +01:00
parent fc99db0235
commit e408159bfe

View File

@@ -583,8 +583,10 @@ void Qt4PriFileNode::changeFiles(const FileType fileType,
*notChanged = filePaths; *notChanged = filePaths;
// Check for modified editors // Check for modified editors
if (!saveModifiedEditors(m_projectFilePath)) if (!saveModifiedEditors(m_projectFilePath)) {
delete reader;
return; return;
}
// Check if file is readonly // Check if file is readonly
ProEditorModel proModel; ProEditorModel proModel;