Fix memory leaks. In gnc-dense-cal.c, 2 GDates were not freed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17212 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2008-06-11 01:19:56 +00:00
parent d2683f020f
commit 50acaf24ab
2 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,7 @@ gnc_ui_select_commodity_modal_full(gnc_commodity * orig_sel,
mnemonic ? mnemonic : "");
gtk_label_set_text ((GtkLabel *)(win->select_user_prompt),
user_prompt_text);
g_free(user_prompt_text);
/* Run the dialog, handling the terminal conditions. */
done = FALSE;

View File

@ -1387,6 +1387,8 @@ int num_weeks_per_col(GncDenseCal *dcal)
}
num_weeks_toRet = MAX(num_weeks_toRet, (endWeek - startWeek)+1);
}
g_date_free(start);
g_date_free(end);
return num_weeks_toRet;
}