Fixed crash when opening a file that doesn't exist
This commit is contained in:
parent
77556bc250
commit
19e45daf89
|
@ -943,6 +943,7 @@ CppParser * cppparser_new(Cpp * cpp, CppParser * parent, char const * filename,
|
|||
void cppparser_delete(CppParser * cp)
|
||||
{
|
||||
string_delete(cp->queue_string);
|
||||
if(cp->parser != NULL)
|
||||
parser_delete(cp->parser);
|
||||
if(cp->subparser != NULL)
|
||||
cppparser_delete(cp->subparser);
|
||||
|
|
Loading…
Reference in New Issue
Block a user