efreet: Release log domain on evil error

This commit is contained in:
Sebastian Dransfeld 2013-06-20 11:12:54 +02:00
parent 5eaaae420e
commit c99b028a7c
1 changed files with 7 additions and 1 deletions

View File

@ -90,7 +90,7 @@ efreet_desktop_init(void)
if (!evil_sockets_init()) if (!evil_sockets_init())
{ {
ERR("Could not initialize Winsock system"); ERR("Could not initialize Winsock system");
return 0; goto error;
} }
#endif #endif
@ -107,6 +107,12 @@ efreet_desktop_init(void)
NULL, NULL); NULL, NULL);
return 1; return 1;
#ifdef HAVE_EVIL
error:
eina_log_domain_unregister(_efreet_desktop_log_dom);
_efreet_desktop_log_dom = -1;
return 0;
#endif
} }
/** /**