Plug memory leak

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20009 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff
2010-12-31 01:38:37 +00:00
parent 050fc0cffd
commit 920f5ab815
+2 -1
View File
@@ -1042,7 +1042,8 @@ gnc_default_currency_common (gchar *requested_currency,
if (currency)
{
mnemonic = requested_currency;
requested_currency = g_strdup(gnc_commodity_get_mnemonic(currency));
// ??? Does anyone know what this is supposed to be doing?
// requested_currency = g_strdup(gnc_commodity_get_mnemonic(currency));
g_free(mnemonic);
}
return currency;