r20041 - gnucash/trunk/src/app-utils - More memory leaks
Phil Longstaff
plongstaff at code.gnucash.org
Sun Jan 9 13:00:33 EST 2011
Author: plongstaff
Date: 2011-01-09 13:00:32 -0500 (Sun, 09 Jan 2011)
New Revision: 20041
Trac: http://svn.gnucash.org/trac/changeset/20041
Modified:
gnucash/trunk/src/app-utils/app-utils.i
Log:
More memory leaks
Modified: gnucash/trunk/src/app-utils/app-utils.i
===================================================================
--- gnucash/trunk/src/app-utils/app-utils.i 2011-01-09 00:11:48 UTC (rev 20040)
+++ gnucash/trunk/src/app-utils/app-utils.i 2011-01-09 18:00:32 UTC (rev 20041)
@@ -97,10 +97,13 @@
{
SCM key_scm = SCM_CAR (path_scm);
char *key;
+ gchar* gkey;
if (!scm_is_string (key_scm))
break;
- key = g_strdup (scm_to_locale_string (key_scm));
- path = g_list_prepend (path, key);
+ key = scm_to_locale_string (key_scm);
+ gkey = g_strdup (key);
+ gnc_free_scm_locale_string(key);
+ path = g_list_prepend (path, gkey);
path_scm = SCM_CDR (path_scm);
}
$1 = g_list_reverse (path);
More information about the gnucash-changes
mailing list