From 16622386e4fee71a8baa7e059fc128c4395e9305 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Mon, 29 Aug 2011 14:06:00 +0000 Subject: [PATCH] e17: fix icccm.class string replace SVN revision: 62948 --- src/bin/e_border.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bin/e_border.c b/src/bin/e_border.c index 12e5bf70a..de6859b79 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -6354,13 +6354,11 @@ _e_border_eval0(E_Border *bd) const char *pname, *pclass; char *nname, *nclass; + ecore_x_icccm_name_class_get(bd->client.win, &nname, &nclass); pname = bd->client.icccm.name; pclass = bd->client.icccm.class; - - ecore_x_icccm_name_class_get(bd->client.win, &nname, &nclass); - - eina_stringshare_replace(&bd->client.icccm.name, nname); - eina_stringshare_replace(&bd->client.icccm.class, nclass); + bd->client.icccm.name = eina_stringshare_add(nname); + bd->client.icccm.class = eina_stringshare_add(nclass); if (nname) free(nname); if (nclass) free(nclass);