Add qof_backend_module_finalize() routine to call dbi_shutdown() to free allocated resources.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18486 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-12-11 17:32:35 +00:00
parent a3b87ece92
commit e278b0c643
2 changed files with 8 additions and 2 deletions

View File

@ -992,6 +992,12 @@ qof_backend_module_init( void )
qof_log_set_level( log_module, QOF_LOG_DEBUG );
}
G_MODULE_EXPORT void
qof_backend_module_finalize( void )
{
dbi_shutdown();
}
/* --------------------------------------------------------- */
typedef struct
{

View File

@ -31,7 +31,7 @@
#include <gmodule.h>
G_MODULE_EXPORT void
qof_backend_module_init(void);
G_MODULE_EXPORT void qof_backend_module_init(void);
G_MODULE_EXPORT void qof_backend_module_finalize(void);
#endif /* GNC_BACKEND_DBI_H_ */