mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix minor memory leak, the numeric_to-string returnes alloced memory
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10155 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
1a66b7b8d4
commit
ae6b1c475e
@ -495,7 +495,7 @@ numeric_to_string (gpointer object, QofParam *getter)
|
||||
gnc_numeric num;
|
||||
num = ((query_numeric_getter)getter->param_getfcn)(object, getter);
|
||||
|
||||
return g_strdup (gnc_numeric_to_string (num));
|
||||
return gnc_numeric_to_string (num);
|
||||
}
|
||||
|
||||
static char *
|
||||
@ -504,7 +504,7 @@ debcred_to_string (gpointer object, QofParam *getter)
|
||||
gnc_numeric num;
|
||||
num = ((query_numeric_getter)getter->param_getfcn)(object, getter);
|
||||
|
||||
return g_strdup (gnc_numeric_to_string (num));
|
||||
return gnc_numeric_to_string (num);
|
||||
}
|
||||
|
||||
/* QOF_TYPE_GUID =================================================== */
|
||||
|
Loading…
Reference in New Issue
Block a user