Skip to content

Commit

Permalink
fixup! delete ns_vec members in reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Aug 27, 2024
1 parent dd8617c commit 76bdded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgnucash/engine/gnc-commodity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2198,7 +2198,7 @@ gnc_commodity_table_destroy(gnc_commodity_table * t)
if (!t) return;
ENTER ("table=%p", t);

for (auto ns : t->ns_vec)
for (auto ns = t->ns_vec.rbegin(); ns != t->ns_vec.rend(); ++ns)
gnc_commodity_table_delete_namespace(t, ns->name);

t->ns_vec.~CommNSVec ();
Expand Down

0 comments on commit 76bdded

Please sign in to comment.