shut down safety checks in the log module
authorcaro <caro>
Sun, 6 Sep 2009 15:25:35 +0000 (15:25 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 Sep 2009 15:25:35 +0000 (15:25 +0000)
Note : currently, because of a circular calls of
eina_log_init() and eina_safety_checks_init(), eina
is not correctly shut down. Imho, eina_log should not
depend on the safety checks module. That would mean
some fprintf in eina_log_domain_new(), eina_log_domain_free(),
eina_log_domain_register()and eina_log_domain_unregister().

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@42292 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_log.c

index 609887c..03288e9 100644 (file)
@@ -1008,6 +1008,8 @@ eina_log_shutdown(void)
 
    if (_eina_log_init_count != 1) return --_eina_log_init_count;
 
+   eina_safety_checks_shutdown();
+
    while (_log_domains_count--)
      {
        if (_log_domains[_log_domains_count].deleted)