From 929cb3d0c141b78d4b3c61d7053773bf0a763d25 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Tue, 24 Aug 2021 00:13:45 +0800 Subject: [PATCH] [engine.i] free swigged GList* arg --- bindings/engine.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/engine.i b/bindings/engine.i index 23f89c96b7..42c8baf744 100644 --- a/bindings/engine.i +++ b/bindings/engine.i @@ -258,6 +258,8 @@ time64 time64CanonicalDayTime(time64 t); $1 = g_list_reverse (path); } +%typemap (freearg) GList * "g_list_free_full ($1, g_free);" + void gnc_quote_source_set_fq_installed (const char* version_string, GList *sources_list); %clear GList *;