forked from enlightenment/efl
eina: fix Eina_Log to only try to free non deleted log.
@fix
This commit is contained in:
parent
f71a78edcb
commit
9579624765
|
@ -1202,6 +1202,7 @@ eina_log_print_unlocked(int domain,
|
|||
EINA_UNLIKELY(domain < 0))
|
||||
{
|
||||
if (file && fnc && fmt)
|
||||
{
|
||||
fprintf(
|
||||
stderr,
|
||||
"CRI: %s:%d %s() eina_log_print() unknown domain %d, original message format '%s'\n",
|
||||
|
@ -1210,12 +1211,15 @@ eina_log_print_unlocked(int domain,
|
|||
fnc,
|
||||
domain,
|
||||
fmt);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(
|
||||
stderr,
|
||||
"CRI: eina_log_print() unknown domain %d, original message format '%s'\n",
|
||||
domain,
|
||||
fmt ? fmt : "");
|
||||
}
|
||||
|
||||
if (_abort_on_critical)
|
||||
abort();
|
||||
|
@ -1580,9 +1584,11 @@ eina_log_color_disable_set(Eina_Bool disabled)
|
|||
|
||||
for (i = 0; i < _log_domains_count; i++)
|
||||
{
|
||||
if (_log_domains[i].deleted)
|
||||
continue;
|
||||
|
||||
domain = &_log_domains[i];
|
||||
|
||||
if (domain->domain_str)
|
||||
free((char *)domain->domain_str);
|
||||
|
||||
if ((domain->color) && (!_disable_color))
|
||||
|
|
Loading…
Reference in New Issue