forked from enlightenment/efl
et_init should fail if eina_init fails
SVN revision: 42237
This commit is contained in:
parent
4576249649
commit
be3e63eb6d
|
@ -756,7 +756,17 @@ eet_init(void)
|
||||||
OpenSSL_add_all_algorithms();
|
OpenSSL_add_all_algorithms();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
eina_init();
|
if (!eina_init())
|
||||||
|
{
|
||||||
|
#ifdef HAVE_GNUTLS
|
||||||
|
gnutls_global_deinit();
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_OPENSSL
|
||||||
|
EVP_cleanup();
|
||||||
|
ERR_free_strings();
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return eet_initcount;
|
return eet_initcount;
|
||||||
}
|
}
|
||||||
|
@ -769,6 +779,8 @@ eet_shutdown(void)
|
||||||
if (eet_initcount > 0) return eet_initcount;
|
if (eet_initcount > 0) return eet_initcount;
|
||||||
|
|
||||||
eet_clearcache();
|
eet_clearcache();
|
||||||
|
|
||||||
|
eina_shutdown();
|
||||||
#ifdef HAVE_GNUTLS
|
#ifdef HAVE_GNUTLS
|
||||||
gnutls_global_deinit();
|
gnutls_global_deinit();
|
||||||
#endif
|
#endif
|
||||||
|
@ -777,8 +789,6 @@ eet_shutdown(void)
|
||||||
ERR_free_strings();
|
ERR_free_strings();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
eina_shutdown();
|
|
||||||
|
|
||||||
return eet_initcount;
|
return eet_initcount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue