mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix memory leaks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3275 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
7899b69833
commit
f9e45f9c73
@ -284,7 +284,7 @@ destroyCombo (BasicCell *bcell)
|
|||||||
/* =============================================== */
|
/* =============================================== */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
menustring_free(gpointer string, gpointer user_data)
|
menustring_free (gpointer string, gpointer user_data)
|
||||||
{
|
{
|
||||||
g_free (string);
|
g_free (string);
|
||||||
}
|
}
|
||||||
@ -830,7 +830,8 @@ xaccComboCellSetIgnoreString (ComboCell *cell, const char *ignore_string)
|
|||||||
|
|
||||||
box = cell->cell.gui_private;
|
box = cell->cell.gui_private;
|
||||||
|
|
||||||
box->ignore_string = g_strdup(ignore_string);
|
g_free (box->ignore_string);
|
||||||
|
box->ignore_string = g_strdup (ignore_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =============================================== */
|
/* =============================================== */
|
||||||
@ -845,7 +846,8 @@ xaccComboCellSetIgnoreHelp (ComboCell *cell, const char *ignore_help)
|
|||||||
|
|
||||||
box = cell->cell.gui_private;
|
box = cell->cell.gui_private;
|
||||||
|
|
||||||
box->ignore_help = g_strdup(ignore_help);
|
g_free (box->ignore_help);
|
||||||
|
box->ignore_help = g_strdup (ignore_help);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =============================================== */
|
/* =============================================== */
|
||||||
|
Loading…
Reference in New Issue
Block a user