REFACTOR: always run qof-query-destroyer

Formerly the qof-query-destroyer is only called upon completion
of a successful report. This commit moves this destroyer to be
nearer the query call, thereby the destroyer is always called.
This commit is contained in:
Christopher Lam 2017-12-10 14:12:13 +08:00
parent fe757dbe6a
commit 7127df58da

View File

@ -1562,7 +1562,7 @@ Credit Card, and Income accounts."))))))
(else #f))
(set! splits (qof-query-run query))
;;(gnc:warn "Splits in trep-renderer:" splits)
(qof-query-destroy query)
;; Combined Filter:
;; - include/exclude splits to/from selected accounts
@ -1626,9 +1626,7 @@ Credit Card, and Income accounts."))))))
(gnc-print-date begindate)
(gnc-print-date enddate)))))
(gnc:html-document-add-object! document table)
(qof-query-destroy query)))))
(gnc:html-document-add-object! document table)))))
(gnc:report-finished)