Delete spectseq on error conditions.

This commit is contained in:
Reece H. Dunn
2015-10-04 13:44:58 +01:00
parent a23c5a6f76
commit 94eefd46d1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -993,6 +993,7 @@ void MyFrame::OnNewWindow(wxCommandEvent& event)
if(stream.Ok() == FALSE)
{
wxLogError(_T("Failed to open '%s'"),filename.c_str());
delete spectseq;
return;
}
wxFileName path = wxFileName(filename);