gnucash/libgnucash/app-utils
Geert Janssens 48b29f5e91 Fix memory leak in char* type KvpValue and fix improper uses
The core issue was that the delete visitor was never called because its parameter
type (char *) didn't match the boost::variant type (const char *).
Fixing the visitor's parameter type also require a const_cast
back to char * because that's what g_free takes as argument.

The rest of this commit is merely fixing KvpValue instantiations that
tried to create a char* KvpValue from a stack based const string instead
of a heap allocated one. That would bomb out on calling the
delete visitor.
2018-09-10 19:49:43 +02:00
..
calculation Fix minor typos 2018-07-27 14:23:15 +03:00
test Fix memory leak in char* type KvpValue and fix improper uses 2018-09-10 19:49:43 +02:00
app-utils.i Restructure the src directory 2017-08-10 18:45:00 +02:00
app-utils.scm html-utilities.scm: new home (gnc:html-render-options-changed) 2018-05-10 13:19:03 +08:00
business-helpers.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
business-helpers.h Restructure the src directory 2017-08-10 18:45:00 +02:00
business-options.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
business-options.h Restructure the src directory 2017-08-10 18:45:00 +02:00
business-options.scm Update bug tracker URL 2018-07-13 09:49:33 -07:00
business-prefs.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
c-interface.scm Add support for guile 2.2 2017-12-20 14:55:40 +01:00
CMakeLists.txt Work around a conflict between gcc 8.0 and swig 3.0 2018-05-09 22:18:29 +02:00
config-var.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
date-utilities.scm Merge branch 'maint' into unstable 2018-03-25 09:36:21 -07:00
file-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
file-utils.h Restructure the src directory 2017-08-10 18:45:00 +02:00
fin.scm Restore fin.scm, incorrectly removed earlier. 2018-02-19 10:50:38 -08:00
gettext.scm Drop guile 1.8 support 2017-12-20 14:55:40 +01:00
gfec.c Bug 795039 - Crash on startup using Technicolor Style sheet in report 2018-04-26 13:01:00 -07:00
gfec.h Rewrite several file path routines to use boost::filesystem 2017-08-26 21:38:21 +02:00
gnc-account-merge.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-account-merge.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-accounting-period.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-accounting-period.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-addr-quickfill.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-addr-quickfill.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-basic-gobject.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-component-manager.c Fix error when options dialogue is open when app closed 2018-07-22 13:07:57 +01:00
gnc-component-manager.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-entry-quickfill.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-entry-quickfill.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-euro.c Replace the gnc:numeric pair with normal Scheme rationals. 2017-12-21 15:33:15 -08:00
gnc-euro.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-exp-parser.c Restore fin.scm, incorrectly removed earlier. 2018-02-19 10:50:38 -08:00
gnc-exp-parser.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-gettext-util.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-gettext-util.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-gsettings.c Change gsettings upgrade test so old_maj_min is < 207 2018-02-18 22:41:39 +00:00
gnc-gsettings.h Add infrastructure to handle preference schema migrations and use it to replace one preference 2017-12-11 21:56:23 +01:00
gnc-help-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-help-utils.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-helpers.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-helpers.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-prefs-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-prefs-utils.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-state.c When doing a file save from the a new start we have no key file 2018-03-12 06:48:01 +00:00
gnc-state.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-sx-instance-model.c Fix memory leak using qof_instance_get on a GncGUID 2018-09-09 22:50:05 +02:00
gnc-sx-instance-model.h Merge branch 'maint' into unstable 2018-02-19 15:25:53 +01:00
gnc-ui-balances.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-ui-balances.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-ui-util.c Fix memory leak using qof_instance_get on a GncGUID 2018-09-09 22:50:05 +02:00
gnc-ui-util.h Bug 794755 - Commodity Register displays fractional prices 2018-07-15 13:20:21 -07:00
gncmod-app-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
guile-util.c Don't set transaction properties via scheme in C code. 2018-07-23 12:00:12 -07:00
guile-util.h Fix minor typos 2018-07-27 14:23:15 +03:00
hooks.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
make-prefs-migration-script.xsl Drop guile 1.8 support 2017-12-20 14:55:40 +01:00
migratable-prefs.xml.in Restructure the src directory 2017-08-10 18:45:00 +02:00
migrate-prefs.scm Rename libgnucash/scm/main.scm to utilities.scm 2018-02-16 15:52:19 -08:00
option-util.c Date option absolute now takes time64. 2018-01-08 13:01:29 +11:00
option-util.h Removing uses of timespec 2018-01-08 13:01:29 +11:00
options.scm [easy-invoice] Display/Charge Type rename back to Display/Action 2018-08-07 20:59:35 +08:00
prefs.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
QuickFill.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
QuickFill.h Restructure the src directory 2017-08-10 18:45:00 +02:00
README Restructure the src directory 2017-08-10 18:45:00 +02:00
simple-obj.scm Restructure the src directory 2017-08-10 18:45:00 +02:00

After loading this module, you must also call

  (gnc:setup-gettext)
  (setlocale LC_ALL "")

at some point to finish initializing the app.  This is not done
automatically from gncmod-app-utils.c via app-utils.scm because you
may need to handle setlocale yourself (or you may already have other
code that does).