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