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
..
2018-08-13 11:52:43 -07:00
2018-05-03 23:18:15 +02:00
2017-10-26 14:05:17 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-10-26 14:05:17 +02:00
2017-10-26 14:05:17 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2018-06-12 14:56:27 -07:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2018-06-12 14:56:27 -07:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2018-06-12 14:56:27 -07:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2018-08-13 11:52:42 -07:00
2017-10-26 14:05:17 +02:00
2017-10-26 14:05:17 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2018-08-13 11:52:42 -07:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-08-10 18:45:00 +02:00
2018-08-08 15:47:09 +02:00
2017-08-10 18:45:00 +02:00
2017-08-10 18:45:00 +02:00
2017-08-10 18:45:00 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2018-08-13 11:52:42 -07:00
2018-07-13 09:49:33 -07:00
2017-08-10 18:45:00 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2018-08-13 11:52:43 -07:00
2018-08-13 11:52:43 -07:00
2018-09-10 19:49:43 +02:00
2018-01-08 13:01:29 +11:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-10-26 14:05:17 +02:00
2018-08-13 11:52:43 -07:00
2018-08-13 11:52:43 -07:00
2017-10-26 14:05:17 +02:00
2017-08-10 18:45:00 +02:00
2017-08-10 18:45:00 +02:00