mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 19:25:27 -07:00
pgf_reader_done should do nothing if the reading has failed
This commit is contained in:
1 parent
2dadc3aa4c
commit
b3149b7897
1 file changed
+3
@@ -1263,5 +1263,8 @@ pgf_new_reader(GuIn* in, GuPool* opool, GuPool* tmp_pool, GuExn* err)
|
||||
void
|
||||
pgf_reader_done(PgfReader* rdr, PgfPGF* pgf)
|
||||
{
|
||||
if (pgf == NULL)
|
||||
return;
|
||||
|
||||
pgf_jit_done(rdr->jit_state, &pgf->abstract);
|
||||
}
|
||||
Reference in new issue
Block a user