From 1e8175590e46d934592a17213b59cf53543b9dff Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 4 Oct 2015 14:19:48 +0100 Subject: [PATCH] Delete spectseq on error conditions in VowelChartDir. --- src/vowelchart.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vowelchart.cpp b/src/vowelchart.cpp index e87d4e32..b9ba1e09 100644 --- a/src/vowelchart.cpp +++ b/src/vowelchart.cpp @@ -1,7 +1,7 @@ /*************************************************************************** * Copyright (C) 2005 to 2013 by Jonathan Duddington * * email: jonsd@users.sourceforge.net * - * 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 * * it under the terms of the GNU General Public License as published by * @@ -225,6 +225,7 @@ static int VowelChartDir(wxDC *dc, wxBitmap *bitmap) if(stream.Ok() == FALSE) { path = wxFindNextFile(); + delete spectseq; continue; } spectseq->Load(stream);