[swig] %newobject to g_free AccountList* functions

This commit is contained in:
Christopher Lam 2021-08-01 11:00:37 +08:00
parent e0d953bfc8
commit a3177e8b6b

View File

@ -36,10 +36,18 @@ static const GncGUID * gncAccountGetGUID(Account *x)
%include <Split.h>
%newobject gnc_account_get_children;
AccountList * gnc_account_get_children (const Account *account);
%newobject gnc_account_get_children_sorted;
AccountList * gnc_account_get_children_sorted (const Account *account);
%newobject gnc_account_get_descendants;
AccountList * gnc_account_get_descendants (const Account *account);
%newobject gnc_account_get_descendants_sorted;
AccountList * gnc_account_get_descendants_sorted (const Account *account);
%ignore gnc_account_get_children;
%ignore gnc_account_get_children_sorted;
%ignore gnc_account_get_descendants;