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 4711e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libgnucash/engine/gnc-commodity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2198,8 +2198,8 @@ gnc_commodity_table_destroy(gnc_commodity_table * t)
if (!t) return;
ENTER ("table=%p", t);

for (auto ns : t->ns_vec)
gnc_commodity_table_delete_namespace(t, ns->name);
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 ();
t->ns_table.~StringCommNSMap ();
Expand Down

0 comments on commit 4711e8f

Please sign in to comment.