From a3177e8b6bbe8f85e4ded4d7048515c42c879041 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 1 Aug 2021 11:00:37 +0800 Subject: [PATCH] [swig] %newobject to g_free AccountList* functions --- bindings/engine-common.i | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/engine-common.i b/bindings/engine-common.i index 52e62d383d..b4d861dd67 100644 --- a/bindings/engine-common.i +++ b/bindings/engine-common.i @@ -36,10 +36,18 @@ static const GncGUID * gncAccountGetGUID(Account *x) %include +%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;