Browse Source

Delete spectseq on error conditions.

master
Reece H. Dunn 9 years ago
parent
commit
94eefd46d1
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      src/spectdisplay.cpp
  2. 1
    1
      src/spectseq.cpp

+ 1
- 0
src/spectdisplay.cpp View File

if(stream.Ok() == FALSE) if(stream.Ok() == FALSE)
{ {
wxLogError(_T("Failed to open '%s'"),filename.c_str()); wxLogError(_T("Failed to open '%s'"),filename.c_str());
delete spectseq;
return; return;
} }
wxFileName path = wxFileName(filename); wxFileName path = wxFileName(filename);

+ 1
- 1
src/spectseq.cpp View File

/*************************************************************************** /***************************************************************************
* Copyright (C) 2005 to 2007 by Jonathan Duddington * * Copyright (C) 2005 to 2007 by Jonathan Duddington *
* email: [email protected] * * email: [email protected] *
* Copyright (C) 2013 Reece H. Dunn *
* Copyright (C) 2013-2015 Reece H. Dunn *
* * * *
* This program is free software; you can redistribute it and/or modify * * This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * * it under the terms of the GNU General Public License as published by *

Loading…
Cancel
Save