From 50b11024d685129e78c36313b892dbc0e55c654c Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 11 Dec 2020 22:34:35 +0100 Subject: core: keep tank infos in a dynamic table The list of known tank types were kept in a fixed size table. Instead, use a dynamic table with our horrendous table macros. This is more flexible and sensible. While doing this, clean up the TankInfoModel, which was leaking memory. Signed-off-by: Berthold Stoeger --- subsurface-mobile-main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'subsurface-mobile-main.cpp') diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp index efaeeac36..255f20053 100644 --- a/subsurface-mobile-main.cpp +++ b/subsurface-mobile-main.cpp @@ -56,6 +56,7 @@ int main(int argc, char **argv) default_prefs.units = IMPERIAL_units; copy_prefs(&default_prefs, &prefs); fill_computer_list(); + reset_tank_info_table(&tank_info_table); parse_xml_init(); taglist_init_global(); -- cgit v1.2.3-70-g09d2