mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug fixes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2439 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a98bb2d3cc
commit
9302e6ef30
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user