AUDIT: r16629 - gnucash/trunk/src/app-utils - Duplicate a key which is "owned" by the table we're inserting it into.
Josh Sled
jsled at cvs.gnucash.org
Sun Dec 9 18:29:16 EST 2007
Author: jsled
Date: 2007-12-09 18:29:16 -0500 (Sun, 09 Dec 2007)
New Revision: 16629
Trac: http://svn.gnucash.org/trac/changeset/16629
Modified:
gnucash/trunk/src/app-utils/gnc-sx-instance-model.c
Log:
Duplicate a key which is "owned" by the table we're inserting it into.
BP
Modified: gnucash/trunk/src/app-utils/gnc-sx-instance-model.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-sx-instance-model.c 2007-12-09 21:33:56 UTC (rev 16628)
+++ gnucash/trunk/src/app-utils/gnc-sx-instance-model.c 2007-12-09 23:29:16 UTC (rev 16629)
@@ -846,7 +846,7 @@
g_assert(parent_var != NULL);
var_copy = gnc_sx_variable_new_copy(parent_var);
- g_hash_table_insert(inst->variable_bindings, to_add_key, var_copy);
+ g_hash_table_insert(inst->variable_bindings, g_strdup(to_add_key), var_copy);
}
}
}
More information about the gnucash-changes
mailing list