Skip to content

Commit

Permalink
[gnc-ledger-display] QofQuery destroyed
Browse files Browse the repository at this point in the history
This QofQuery was copied by gnc_ledger_display_internal, therefore its
is no longer in use when out of scope.
  • Loading branch information
christopherlam committed Jul 30, 2022
1 parent 7bc7737 commit 723dee6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnucash/register/ledger-core/gnc-ledger-display.c
Expand Up @@ -530,6 +530,8 @@ gnc_ledger_display_template_gl (char* id)
gnc_split_register_set_template_account (sr, acct);
}

qof_query_destroy (q);

LEAVE ("%p", ld);
return ld;
}
Expand Down

0 comments on commit 723dee6

Please sign in to comment.