Skip to content

Commit

Permalink
fix attribute leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jul 12, 2024
1 parent e7d2afb commit 9ea686e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ namespace broma {
static void apply(T& input, Root* root, ScratchData* scratch) {
root->classes.push_back(std::move(scratch->wip_class));
scratch->wip_class = Class();
scratch->wip_attributes = Attributes();
}
};
Expand Down
1 change: 1 addition & 0 deletions src/function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ namespace broma {
}
}
}
scratch->wip_attributes = Attributes();
}
};

Expand Down

0 comments on commit 9ea686e

Please sign in to comment.