Bug fixes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2439 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-06-08 02:23:24 +00:00
parent a98bb2d3cc
commit 9302e6ef30

View File

@ -306,6 +306,14 @@ destroyCombo (BasicCell *bcell)
/* =============================================== */
static void
menustring_free(gpointer string, gpointer user_data)
{
g_free(string);
}
/* =============================================== */
void xaccDestroyComboCell (ComboCell *cell)
{
PopBox *box = (PopBox *) cell->cell.gui_private;
@ -313,8 +321,9 @@ void xaccDestroyComboCell (ComboCell *cell)
destroyCombo(&(cell->cell));
if (box != NULL) {
g_list_foreach(box->menustrings, (GFunc) g_free, NULL);
g_list_foreach(box->menustrings, menustring_free, NULL);
g_list_free(box->menustrings);
box->menustrings = NULL;
xaccFreeQuickFill(box->qf);
box->qf = NULL;
@ -348,7 +357,7 @@ xaccClearComboCellMenu (ComboCell * cell)
if (box->menustrings == NULL)
return;
g_list_foreach(box->menustrings, (GFunc) g_free, NULL);
g_list_foreach(box->menustrings, menustring_free, NULL);
g_list_free(box->menustrings);
box->menustrings = NULL;