forked from enlightenment/enlightenment
more evry apps leaks and wrong E_FREE usage
SVN revision: 80856
This commit is contained in:
parent
aa04f119e2
commit
6e72b63508
|
@ -1031,17 +1031,18 @@ _open_term_action(Evry_Action *act)
|
||||||
|
|
||||||
if (dir)
|
if (dir)
|
||||||
{
|
{
|
||||||
if (!getcwd(cwd, sizeof(cwd)))
|
if ((!getcwd(cwd, sizeof(cwd))) || (chdir(dir)))
|
||||||
return 0;
|
{
|
||||||
if (chdir(dir))
|
free(dir);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
tmp = E_NEW(Evry_Item_App, 1);
|
tmp = E_NEW(Evry_Item_App, 1);
|
||||||
tmp->file = _conf->cmd_terminal;
|
tmp->file = _conf->cmd_terminal;
|
||||||
|
|
||||||
ret = evry->util_exec_app(EVRY_ITEM(tmp), NULL);
|
ret = evry->util_exec_app(EVRY_ITEM(tmp), NULL);
|
||||||
E_FREE(tmp);
|
free(tmp);
|
||||||
E_FREE(dir);
|
free(dir);
|
||||||
if (chdir(cwd))
|
if (chdir(cwd))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue