gnucash/libgnucash/backend/xml
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
..
test Clean up timespec comments in the XML backend. 2018-08-13 11:52:43 -07:00
CMakeLists.txt Lowercase cmake commands 2018-05-03 23:18:15 +02:00
gnc-account-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-address-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-address-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-backend-xml.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-backend-xml.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-bill-term-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-bill-term-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-book-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-budget-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-commodity-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-customer-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-customer-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-employee-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-employee-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-entry-xml-v2.cpp Bug 795276 - Invalid date on price stops file from being parsed. 2018-06-12 14:56:27 -07:00
gnc-entry-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-freqspec-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-invoice-xml-v2.cpp Bug 795276 - Invalid date on price stops file from being parsed. 2018-06-12 14:56:27 -07:00
gnc-invoice-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-job-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-job-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-lot-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-order-xml-v2.cpp Bug 795276 - Invalid date on price stops file from being parsed. 2018-06-12 14:56:27 -07:00
gnc-order-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-owner-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-owner-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-pricedb-xml-v2.cpp Remove Timespec from pricedb. 2018-08-13 11:52:42 -07:00
gnc-recurrence-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-schedxaction-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-tax-table-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-tax-table-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-transaction-xml-v2.cpp Remove Timespec from the main engine classes (Transaction, Split, & Account. 2018-08-13 11:52:42 -07:00
gnc-vendor-xml-v2.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
gnc-vendor-xml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-xml-backend.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-xml-backend.hpp Fix crash when cancelling a Save As... overwrite action 2018-08-08 15:47:09 +02:00
gnc-xml-helper.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-xml-helper.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gnc-xml.h Restructure the src directory 2017-08-10 18:45:00 +02:00
gncmod-backend-xml.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
io-example-account.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
io-example-account.h Restructure the src directory 2017-08-10 18:45:00 +02:00
io-gncxml-gen.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
io-gncxml-gen.h Restructure the src directory 2017-08-10 18:45:00 +02:00
io-gncxml-v1.cpp Remove Timespec from pricedb. 2018-08-13 11:52:42 -07:00
io-gncxml-v2.cpp Update bug tracker URL 2018-07-13 09:49:33 -07:00
io-gncxml-v2.h Restructure the src directory 2017-08-10 18:45:00 +02:00
io-gncxml.h Restructure the src directory 2017-08-10 18:45:00 +02:00
io-utils.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
io-utils.h Restructure the src directory 2017-08-10 18:45:00 +02:00
sixtp-dom-generators.cpp Clean up timespec comments in the XML backend. 2018-08-13 11:52:43 -07:00
sixtp-dom-generators.h Remove time64_to_string and string_to_time64 and their tests. 2018-08-13 11:52:43 -07:00
sixtp-dom-parsers.cpp Fix memory leak in char* type KvpValue and fix improper uses 2018-09-10 19:49:43 +02:00
sixtp-dom-parsers.h Converted timespec_to_dom_tree to time64 2018-01-08 13:01:29 +11:00
sixtp-parsers.h Restructure the src directory 2017-08-10 18:45:00 +02:00
sixtp-stack.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
sixtp-stack.h Restructure the src directory 2017-08-10 18:45:00 +02:00
sixtp-to-dom-parser.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
sixtp-utils.cpp Clean up timespec comments in the XML backend. 2018-08-13 11:52:43 -07:00
sixtp-utils.h Remove time64_to_string and string_to_time64 and their tests. 2018-08-13 11:52:43 -07:00
sixtp.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
sixtp.h Restructure the src directory 2017-08-10 18:45:00 +02:00
xml-helpers.h Restructure the src directory 2017-08-10 18:45:00 +02:00