More memory leaks

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20006 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff
2010-12-30 15:55:33 +00:00
parent 0909e1617e
commit 932513727a

View File

@@ -2729,12 +2729,15 @@ gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
res = qof_query_run(q);
len = g_list_length (res);
if (!res || len <= 0)
{
qof_query_destroy(q);
return NULL;
}
{
gchar *message = g_strdup_printf
(/* Translators: %d is the number of bills due. This is a
ngettext(3) message. */
ngettext(3) message. */
ngettext("The following %d bill is due:",
"The following %d bills are due:",
len),
@@ -2746,6 +2749,7 @@ gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
TRUE, FALSE,
buttons, NULL);
g_free(message);
qof_query_destroy(q);
return dialog;
}
}