Automatically init/exit libmdb code

mdb_init() and mdb_exit() are now deprecated.
This commit is contained in:
Nirgal Vourgère
2012-07-22 02:29:04 +02:00
parent f8a3839c7f
commit f6cd70494c
26 changed files with 34 additions and 122 deletions

View File

@@ -246,8 +246,6 @@ gint nmenu_items = sizeof (menu_items) / sizeof (menu_items[0]);
/* initialize the SQL engine */
sql = mdb_sql_init();
#endif
/* initialize MDB Tools library */
mdb_init();
#ifdef HAVE_GNOME
/* Initialize GNOME */
@@ -320,7 +318,6 @@ gint nmenu_items = sizeof (menu_items) / sizeof (menu_items[0]);
/* free MDB Tools library */
mdb_sql_exit(sql);
#endif
mdb_exit();
return 0;
}