Skip to content

Commit

Permalink
[swig] %newobject to g_free AccountList* functions
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Aug 3, 2021
1 parent e0d953b commit a3177e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bindings/engine-common.i
Expand Up @@ -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;
Expand Down

0 comments on commit a3177e8

Please sign in to comment.