mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-04 14:33:31 +00:00
Delete spectseq on error conditions in VowelChartDir.
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user