forked from GitHub/gf-core
fix another space leak
This commit is contained in:
@@ -7,6 +7,13 @@
|
|||||||
//#define DEBUG_PARSER
|
//#define DEBUG_PARSER
|
||||||
//#define DEBUG_GENERATOR
|
//#define DEBUG_GENERATOR
|
||||||
|
|
||||||
|
struct PgfLRTableMaker::Item {
|
||||||
|
object lin_obj;
|
||||||
|
size_t seq_index;
|
||||||
|
ref<PgfSequence> seq;
|
||||||
|
size_t dot;
|
||||||
|
};
|
||||||
|
|
||||||
struct PgfLRTableMaker::State {
|
struct PgfLRTableMaker::State {
|
||||||
size_t id;
|
size_t id;
|
||||||
Predictions *preds;
|
Predictions *preds;
|
||||||
@@ -18,13 +25,12 @@ struct PgfLRTableMaker::State {
|
|||||||
this->id = 0;
|
this->id = 0;
|
||||||
this->preds = preds;
|
this->preds = preds;
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
struct PgfLRTableMaker::Item {
|
~State() {
|
||||||
object lin_obj;
|
for (Item *item : items) {
|
||||||
size_t seq_index;
|
delete item;
|
||||||
ref<PgfSequence> seq;
|
}
|
||||||
size_t dot;
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PgfLRTableMaker::Predictions {
|
struct PgfLRTableMaker::Predictions {
|
||||||
|
|||||||
Reference in New Issue
Block a user