From f9e45f9c73a5091199024fada25852fc7140414b Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Sat, 9 Dec 2000 08:45:45 +0000 Subject: [PATCH] Fix memory leaks. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3275 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/gnome/combocell-gnome.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/register/gnome/combocell-gnome.c b/src/register/gnome/combocell-gnome.c index cce0683b65..da82a390d9 100644 --- a/src/register/gnome/combocell-gnome.c +++ b/src/register/gnome/combocell-gnome.c @@ -284,7 +284,7 @@ destroyCombo (BasicCell *bcell) /* =============================================== */ static void -menustring_free(gpointer string, gpointer user_data) +menustring_free (gpointer string, gpointer user_data) { g_free (string); } @@ -830,7 +830,8 @@ xaccComboCellSetIgnoreString (ComboCell *cell, const char *ignore_string) 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->ignore_help = g_strdup(ignore_help); + g_free (box->ignore_help); + box->ignore_help = g_strdup (ignore_help); } /* =============================================== */