Commit Graph

24602 Commits

Author SHA1 Message Date
Robert Fewell
cacdb12aa5 Dereference the prices used in function convert_price
The two prices used in convert_price had there reference count
increased in extract_common_prices. This lead to the reference count
continuously increasing and not being freed on close so add
gnc_price_unref on both prices to reduce the reference count.
2021-08-15 12:20:35 +01:00
Robert Fewell
77cf90f198 Free the template root account after the scheduled transactions
have been freed.
2021-08-15 12:20:29 +01:00
Robert Fewell
a76fa5631c Free schedule Transaction accounts
There is no need to act differently when destroying the scheduled
transactions accounts, they can be destroyed when the scheduled
transaction is freed under normal conditions and on book close.
2021-08-14 15:09:42 +01:00
Robert Fewell
a9a3ed425a Free Accounts on book close 2021-08-14 15:09:33 +01:00
Robert Fewell
6a9ff287cd Wrap BillTermDecRef and TaxTableDecRef in test for shutdown
When Gnucash is shutting down, the TaxTables and BillTerms will be
destroyed/freed and may already have been so there is no point trying
to decrement a reference that is used to stop them being destroyed if
in use.
2021-08-14 15:09:33 +01:00
Robert Fewell
b421b3d2af Free Jobs for Customers and Vendors on book close 2021-08-12 16:07:31 +01:00
Robert Fewell
c2a6f1e911 Free TaxTable and BillTerms on book close 2021-08-12 16:07:31 +01:00
Christopher Lam
5ced0d932a Merge branch 'maint-account-cpp' into maint #1107 2021-08-12 17:39:45 +08:00
Frank H. Ellenberger
fa666e7367 L10N:sv:Update to PO-Revision-Date: 2021-08-03 from TP
5229 translated messages, 133 fuzzy translations.
2021-08-12 06:27:57 +02:00
Christopher Lam
40d886fa9d gnc_account_list_name_violations elements must be freed 2021-08-12 09:39:08 +08:00
Christopher Lam
4c37f6d4ef [account.cpp] gnc_g_list_stringjoin instead of repeated allocations 2021-08-12 09:19:34 +08:00
Christopher Lam
e84549926b [gnc-glib-utils] gnc_g_list_stringjoin to join a GList of strings
It traverses the GList twice (once to calculate the length) but
allocates only once.

Includes snippet from
https://www.joelonsoftware.com/2001/12/11/back-to-basics/
2021-08-12 09:19:34 +08:00
TianXing_Yi
8fc1563911
Translation update by TianXing_Yi <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 99.7% (5351 of 5364 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: TianXing_Yi <ytx.cash@gmail.com>
2021-08-11 11:34:24 +02:00
Avi Markovitz
071bd209ac
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5364 of 5364 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2021-08-11 11:34:24 +02:00
Eric
6a8372affc
Translation update by Eric <spice2wolf@gmail.com> using Weblate
po/zh_CN.po: 99.7% (5351 of 5364 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: Eric <spice2wolf@gmail.com>
2021-08-11 11:34:23 +02:00
Christian Wehling
b1c1272f35
Translation update by Christian Wehling <christian.wehling@web.de> using Weblate
po/de.po: 99.8% (5357 of 5364 strings; 7 fuzzy)
250 failing checks (4.6%)
Translation: GnuCash/Program (German)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/de/

Co-authored-by: Christian Wehling <christian.wehling@web.de>
2021-08-10 19:35:05 +02:00
TianXing_Yi
339f66810f
Translation update by TianXing_Yi <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 99.7% (5350 of 5364 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by TianXing_Yi <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 99.7% (5350 of 5364 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by TianXing_Yi <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 99.7% (5350 of 5364 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by TianXing_Yi <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 99.7% (5350 of 5364 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by TianXing_Yi <ytx.cash@gmail.com> using Weblate

po/zh_CN.po: 99.7% (5350 of 5364 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: TianXing_Yi <ytx.cash@gmail.com>
2021-08-10 19:35:05 +02:00
John Ralls
be6fb1abe2 Merge Chris Good's 'bug798205ImpOfx' into maint. 2021-08-07 14:39:57 -07:00
Christopher Lam
bedc85afa3 Merge branch 'maint-leaks' into maint #1101 2021-08-06 19:30:01 +08:00
Christopher Lam
0420ae6a66 [account.cpp] refactor gnc_account_list_name_violations 2021-08-06 17:31:36 +08:00
Christopher Lam
67bd513514 [account.cpp] rewrite gnc_account_foreach_descendant_until in C++ 2021-08-06 17:31:36 +08:00
Christopher Lam
17953441cb [account.cpp] refactor gnc_account_foreach_descendant 2021-08-06 17:31:36 +08:00
Christopher Lam
5698b67bf5 [account.cpp] refactor gnc_account_lookup_by_code 2021-08-06 17:31:36 +08:00
Christopher Lam
09e2e7613c [account.cpp] refactor gnc_account_lookup_by_name 2021-08-06 17:31:36 +08:00
Christopher Lam
bebc366e88 [account.cpp] refactor gnc_account_n_descendants 2021-08-06 17:31:35 +08:00
John Ralls
f0926d66c1 Merge Simon Arlott's 'qof-instance-dispose' into maint. 2021-08-05 11:45:14 -07:00
Christopher Lam
e6c33a39bc [account.cpp] refactor gnc_account_get_descendants{_sorted} 2021-08-06 00:23:12 +08:00
Christopher Lam
d2db43019c [account.cpp] internal function account_foreach_descendant
fast and efficient
2021-08-06 00:23:12 +08:00
Christopher Lam
86bc9d93a7 gchar *gnc_account_get_full_name must be freed
The gnc-account-sel.c one was causing a runaway leak -- leaked
full_name for every account (except the matched account) in the
GNCAccountSel. Interestingly the original commit[*] suggests the name
should have been freed correctly however the braces prohibited it.

[*] e5b0bdbe10
2021-08-05 23:12:46 +08:00
Christopher Lam
de1ad9367a g_free gnc_ctime which returns a new gchar* 2021-08-05 21:42:31 +08:00
Simon Arlott
7a0ea190ca
qof_instance_dispose should always complete dispose processes
If QofInstancePrivate has no collection then qof_instance_dispose() returns
without completing the rest of its dispose processes, skipping removal of
its type string from the string cache resulting in a reference count leak.

Change the check for a collection so that it only affects the call to
qof_collection_remove_entity().
2021-08-05 08:56:51 +01:00
Christopher Lam
de0af2dca7 [reconcile-view.c] g_list_free a GList* 2021-08-05 09:23:42 +08:00
Christopher Lam
c9db551693 g_free qof_print_date which returns a new char* 2021-08-05 09:23:28 +08:00
John Ralls
d099d39afd Merge Simon Arlott's 'commit-root-on-load' into maint. 2021-08-04 15:52:51 -07:00
John Ralls
fd56512cf7 Merge Simon Arlott's 'load-test-xml' into maint. 2021-08-04 15:48:42 -07:00
John Ralls
9062be3d47 Merge Simon Arlott's 'string-cache-fixes' into maint. 2021-08-04 14:26:27 -07:00
John Ralls
f6766d42ec Merge Simon Arlott's 'string-cache-no-refcount-empty' into maint. 2021-08-04 14:19:21 -07:00
John Ralls
ddc423a505 Merge Simon Arlott's 'bug-798238' into maint. 2021-08-04 14:18:16 -07:00
Avi Markovitz
79d6154cb5
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5364 of 5364 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2021-08-04 20:52:33 +02:00
Yaron Shahrabani
c2bc31fafc
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 100.0% (5364 of 5364 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
2021-08-04 20:52:33 +02:00
Avi Markovitz
a6b7a4cb85
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5364 of 5364 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2021-08-04 20:52:33 +02:00
TianXing_Yi
351ae62ced
Translation update by TianXing_Yi <ytx.cash@gmail.com> using Weblate
po/zh_CN.po: 99.7% (5350 of 5364 strings; 1 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: TianXing_Yi <ytx.cash@gmail.com>
2021-08-04 20:52:33 +02:00
Frank H. Ellenberger
b31b8dbd1e Merge PR #1103 into maint 2021-08-04 20:16:14 +02:00
Christopher Lam
a5edacf0fc [options.scm] Rename option name to "Levels of Subaccounts"
Original name "Show Accounts until level". Add backward compatibility
missed in 08f490ee98
2021-08-04 19:02:30 +08:00
Steven Walter
5f721614ad Remove unneeded .decode() from Invoice*.tex.templ
These values are already str's, don't decode them
2021-08-03 15:59:54 -04:00
Christopher Lam
23bd716451 g_free gnc-path's gchar* intermediate strings 2021-08-03 12:14:12 +08:00
Christopher Lam
67ecb1074f [assistant-hierarchy.c] g_free data->gnc_accounts_dir
because it is assigned to gnc_path_get_accountsdir() which is a *gchar
and must be freed.
2021-08-03 12:14:12 +08:00
Christopher Lam
a3177e8b6b [swig] %newobject to g_free AccountList* functions 2021-08-03 12:14:12 +08:00
Christopher Lam
e0d953bfc8 [swig] %newobject to g_free gchar* functions 2021-08-03 12:14:12 +08:00
Frank H. Ellenberger
b247c10516 L10N:sv: Update to PO-Revision-Date: 2021-07-26 from TP
po/sv.po:15694: msgstr lacks the keyboard accelerator mark '_'
msgfmt: found 1 fatal error
5205 translated messages, 157 fuzzy translations.
2021-08-02 09:45:30 +02:00