summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2014-01-20 13:25:59 -0500
committerzmike <michael.blumenkrantz@gmail.com>2014-01-20 13:36:56 -0500
commit76235cd0cac7b8fd153ca75868bb846d04a68cd5 (patch)
tree34f7c92814158af364f1982280d52e6921e02bc4
parent5c7efc5687bd6ea2367f93fe984bc9ac7f20360a (diff)
prefs init should probably clean up after itself when it fucks up
-rw-r--r--src/lib/elm_prefs.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/lib/elm_prefs.c b/src/lib/elm_prefs.c
index 7203f8dab..443b49ea0 100644
--- a/src/lib/elm_prefs.c
+++ b/src/lib/elm_prefs.c
@@ -2136,17 +2136,21 @@ _elm_prefs_init(void)
2136 _elm_prefs_descriptors_init(); 2136 _elm_prefs_descriptors_init();
2137 _elm_prefs_data_init(); 2137 _elm_prefs_data_init();
2138 2138
2139 _elm_prefs_page_widgets_map = eina_hash_string_superfast_new(NULL);
2140 _elm_prefs_item_widgets_map = eina_hash_string_superfast_new(NULL);
2141 _elm_prefs_item_type_widgets_map = eina_hash_int32_new(NULL);
2142
2143 if (!(m = _elm_module_find_as("prefs_iface"))) 2139 if (!(m = _elm_module_find_as("prefs_iface")))
2144 { 2140 {
2145 DBG("prefs iface module could not be loaded," 2141 WRN("prefs iface module could not be loaded,"
2146 " the prefs widget won't function"); 2142 " the prefs widget won't function");
2147 2143
2144 --_elm_prefs_init_count;
2145 _elm_prefs_descriptors_shutdown();
2146 _elm_prefs_data_shutdown();
2148 return; 2147 return;
2149 } 2148 }
2149
2150 _elm_prefs_page_widgets_map = eina_hash_string_superfast_new(NULL);
2151 _elm_prefs_item_widgets_map = eina_hash_string_superfast_new(NULL);
2152 _elm_prefs_item_type_widgets_map = eina_hash_int32_new(NULL);
2153
2150 m->init_func(m); 2154 m->init_func(m);
2151} 2155}
2152 2156