From 5f00002f42354b3899324a443d37584244615c9c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 26 Jun 2012 10:03:01 +0000 Subject: [PATCH] fix stringshare misuse SVN revision: 72866 --- src/bin/e_int_shelf_config.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/e_int_shelf_config.c b/src/bin/e_int_shelf_config.c index f2722dabd..0e5dd8729 100644 --- a/src/bin/e_int_shelf_config.c +++ b/src/bin/e_int_shelf_config.c @@ -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); }