diff options
author | Michael Budde <mbudde@gmail.com> | 2018-01-04 17:45:09 +0100 |
---|---|---|
committer | Michael Budde <mbudde@gmail.com> | 2018-01-04 18:29:48 +0100 |
commit | c0ad7e34fa06f0e490a03342bc9b02365080b81a (patch) | |
tree | 6ec925ec8a32736a217d90bb31a855dbee8d710e /src/filters.h | |
parent | 8fe509e9e1d3a68fe785299f7484354c34d8ecae (diff) | |
download | fork-ledger-c0ad7e34fa06f0e490a03342bc9b02365080b81a.tar.gz fork-ledger-c0ad7e34fa06f0e490a03342bc9b02365080b81a.tar.bz2 fork-ledger-c0ad7e34fa06f0e490a03342bc9b02365080b81a.zip |
Fix segfault when using --market with --group-by
`changed_value_posts::create_accounts()` reuses the `<Revalued>` account
from `display_filter`, but when clearing `changed_value_posts`
`create_accounts()` would be called before the account had been
recreated by `display_filter_posts`. This results in a segfault when
using the --group-by option.
I'm not sure if `display_filter_posts` has the same problem but I
reordered the calls there too for good measure.
Diffstat (limited to 'src/filters.h')
-rw-r--r-- | src/filters.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters.h b/src/filters.h index 8b1f8d2a..9539eec9 100644 --- a/src/filters.h +++ b/src/filters.h @@ -565,9 +565,9 @@ public: last_display_total = value_t(); temps.clear(); - create_accounts(); - item_handler<post_t>::clear(); + + create_accounts(); } }; @@ -627,9 +627,9 @@ public: last_total = value_t(); temps.clear(); - create_accounts(); - item_handler<post_t>::clear(); + + create_accounts(); } }; |