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,7 +1202,8 @@ eina_log_print_unlocked(int domain,
|
||||||
EINA_UNLIKELY(domain < 0))
|
EINA_UNLIKELY(domain < 0))
|
||||||
{
|
{
|
||||||
if (file && fnc && fmt)
|
if (file && fnc && fmt)
|
||||||
fprintf(
|
{
|
||||||
|
fprintf(
|
||||||
stderr,
|
stderr,
|
||||||
"CRI: %s:%d %s() eina_log_print() unknown domain %d, original message format '%s'\n",
|
"CRI: %s:%d %s() eina_log_print() unknown domain %d, original message format '%s'\n",
|
||||||
file,
|
file,
|
||||||
|
@ -1210,12 +1211,15 @@ eina_log_print_unlocked(int domain,
|
||||||
fnc,
|
fnc,
|
||||||
domain,
|
domain,
|
||||||
fmt);
|
fmt);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
fprintf(
|
{
|
||||||
|
fprintf(
|
||||||
stderr,
|
stderr,
|
||||||
"CRI: eina_log_print() unknown domain %d, original message format '%s'\n",
|
"CRI: eina_log_print() unknown domain %d, original message format '%s'\n",
|
||||||
domain,
|
domain,
|
||||||
fmt ? fmt : "");
|
fmt ? fmt : "");
|
||||||
|
}
|
||||||
|
|
||||||
if (_abort_on_critical)
|
if (_abort_on_critical)
|
||||||
abort();
|
abort();
|
||||||
|
@ -1580,10 +1584,12 @@ eina_log_color_disable_set(Eina_Bool disabled)
|
||||||
|
|
||||||
for (i = 0; i < _log_domains_count; i++)
|
for (i = 0; i < _log_domains_count; i++)
|
||||||
{
|
{
|
||||||
|
if (_log_domains[i].deleted)
|
||||||
|
continue;
|
||||||
|
|
||||||
domain = &_log_domains[i];
|
domain = &_log_domains[i];
|
||||||
|
|
||||||
if (domain->domain_str)
|
free((char *)domain->domain_str);
|
||||||
free((char *)domain->domain_str);
|
|
||||||
|
|
||||||
if ((domain->color) && (!_disable_color))
|
if ((domain->color) && (!_disable_color))
|
||||||
domain->domain_str = eina_log_domain_str_get(domain->name, domain->color);
|
domain->domain_str = eina_log_domain_str_get(domain->name, domain->color);
|
||||||
|
|
Loading…
Reference in New Issue