termio: remove leak. CID1399747
This commit is contained in:
parent
756a45e654
commit
3378f033f5
|
@ -613,7 +613,7 @@ _activate_link(Evas_Object *obj, Eina_Bool may_inline)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (from_escape_code && !config->active_links_escape)
|
if (from_escape_code && !config->active_links_escape)
|
||||||
return;
|
goto end;
|
||||||
|
|
||||||
if (link_is_url(link))
|
if (link_is_url(link))
|
||||||
{
|
{
|
||||||
|
@ -621,30 +621,31 @@ _activate_link(Evas_Object *obj, Eina_Bool may_inline)
|
||||||
{
|
{
|
||||||
email = EINA_TRUE;
|
email = EINA_TRUE;
|
||||||
if (!config->active_links_email)
|
if (!config->active_links_email)
|
||||||
return;
|
goto end;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
url = EINA_TRUE;
|
url = EINA_TRUE;
|
||||||
if (!config->active_links_url)
|
if (!config->active_links_url)
|
||||||
return;
|
goto end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (link[0] == '/')
|
else if (link[0] == '/')
|
||||||
{
|
{
|
||||||
path = link;
|
path = link;
|
||||||
if (!config->active_links_file)
|
if (!config->active_links_file)
|
||||||
return;
|
goto end;
|
||||||
}
|
}
|
||||||
else if (link_is_email(link))
|
else if (link_is_email(link))
|
||||||
{
|
{
|
||||||
email = EINA_TRUE;
|
email = EINA_TRUE;
|
||||||
if (!config->active_links_email)
|
if (!config->active_links_email)
|
||||||
return;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
s = eina_str_escape(link);
|
s = eina_str_escape(link);
|
||||||
if (!s) return;
|
if (!s)
|
||||||
|
goto end;
|
||||||
if (email)
|
if (email)
|
||||||
{
|
{
|
||||||
const char *p = s;
|
const char *p = s;
|
||||||
|
@ -761,10 +762,14 @@ _activate_link(Evas_Object *obj, Eina_Bool may_inline)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
free(s);
|
free(s);
|
||||||
return;
|
goto end;
|
||||||
}
|
}
|
||||||
free(s);
|
free(s);
|
||||||
if (!handled) ecore_exe_run(buf, NULL);
|
if (!handled)
|
||||||
|
ecore_exe_run(buf, NULL);
|
||||||
|
|
||||||
|
end:
|
||||||
|
free((char*)link);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue