mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix memory leak: Returned strings from gconf need to be freed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16075 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7aa1aec532
commit
fdb7af4a6b
@ -202,6 +202,7 @@ gnc_history_add_file (const char *newfile)
|
||||
* Store the new zero entry.
|
||||
*/
|
||||
gnc_gconf_set_string(HISTORY_STRING_SECTION, to, newfile, NULL);
|
||||
g_free(to);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user