fix stringshare misuse

SVN revision: 72866
This commit is contained in:
Mike Blumenkrantz 2012-06-26 10:03:01 +00:00
parent e5c939b62f
commit 5f00002f42
1 changed files with 2 additions and 3 deletions

View File

@ -263,10 +263,9 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
e_shelf_style_set(cfdata->es, cfdata->style);
}
else if ((cfdata->escfg->style) &&
(strcmp(cfdata->escfg->style, cfdata->style)))
(cfdata->escfg->style != cfdata->style))
{
if (cfdata->escfg->style) eina_stringshare_del(cfdata->escfg->style);
cfdata->escfg->style = eina_stringshare_ref(cfdata->style);
eina_stringshare_replace(&cfdata->escfg->style, cfdata->style);
e_shelf_style_set(cfdata->es, cfdata->style);
}