clean up some stringshare use

SVN revision: 80035
This commit is contained in:
Mike Blumenkrantz 2012-12-03 10:16:59 +00:00
parent 8adb889d90
commit 9ab2f7b1ee
1 changed files with 3 additions and 11 deletions

View File

@ -1152,17 +1152,9 @@ _auto_apply_changes(E_Config_Dialog_Data *cfdata)
actd = eina_list_nth(actg->acts, a);
if (!actd) return;
eina_stringshare_del(bi->action);
bi->action = NULL;
if (actd->act_cmd) bi->action = eina_stringshare_add(actd->act_cmd);
eina_stringshare_del(bi->params);
bi->params = NULL;
if (actd->act_params)
bi->params = eina_stringshare_add(actd->act_params);
else
eina_stringshare_replace(&bi->action, actd->act_cmd);
eina_stringshare_replace(&bi->params, actd->act_params);
if (!bi->params)
{
ok = 1;
if (cfdata->locals.params)