Improve gnc_numeric_boxed_copy_func based on discussion in PR#145

In essence
- guard against nullptr dereferencing
- free returned values
This commit is contained in:
Geert Janssens
2017-10-23 22:13:22 +02:00
parent 53ef0c5be9
commit 444eb1c28e
7 changed files with 47 additions and 15 deletions

View File

@@ -249,6 +249,8 @@ test_gnc_split_set_get_property ()
* few leaks to save trouble; it will all work fine once the
* refactoring is taken care of.
*/
g_free (r_value);
g_free (r_amount);
g_object_unref (txn);
g_object_unref (acc);
g_object_unref (lot);