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:
Christian Stimming 2007-05-12 19:12:02 +00:00
parent 7aa1aec532
commit fdb7af4a6b

View File

@ -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);
}