mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
d2683f020f
commit
50acaf24ab
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user