gnucash master: [gnucash.cpp] quote_soures is a GList of char* to be g_freed

Christopher Lam clam at code.gnucash.org
Sat Feb 25 07:04:24 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/0780cfbf (commit)
	from  https://github.com/Gnucash/gnucash/commit/26482f39 (commit)



commit 0780cfbfd20630ad3124dc3aad5073602e05bae1
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Feb 25 20:02:54 2023 +0800

    [gnucash.cpp] quote_soures is a GList of char* to be g_freed

diff --git a/gnucash/gnucash.cpp b/gnucash/gnucash.cpp
index b0b78871f..6c54baed9 100644
--- a/gnucash/gnucash.cpp
+++ b/gnucash/gnucash.cpp
@@ -177,7 +177,7 @@ scm_run_gnucash (void *data, [[maybe_unused]] int argc, [[maybe_unused]] char **
         auto found = (bl::format (std::string{_("Found Finance::Quote version {1}.")}) % quotes.version()).str();
         auto quote_sources = quotes.sources_as_glist();
         gnc_quote_source_set_fq_installed (quotes.version().c_str(), quote_sources);
-        g_list_free (quote_sources);
+        g_list_free_full (quote_sources, g_free);
         gnc_update_splash_screen (found.c_str(), GNC_SPLASH_PERCENTAGE_UNKNOWN);
     }
     catch (const GncQuoteException& err)



Summary of changes:
 gnucash/gnucash.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list