sag:: fixup to sag_edge

This commit is contained in:
Zeno Rogue 2022-11-13 13:41:41 +01:00
parent 6450f7c8a6
commit 84344e7d5d
1 changed files with 1 additions and 0 deletions

View File

@ -879,6 +879,7 @@ namespace sag {
void readsag(const char *fname) {
maxweight = 0;
sag_edge = add_edgetype("SAG edge");
rogueviz::cleanup.push_back([] { sag_edge = nullptr; });
fhstream f(fname, "rt");
if(!f.f) {
printf("Failed to open SAG file: %s\n", fname);