e17: fix icccm.class string replace
authorHannes Janetzek <hannes.janetzek@gmail.com>
Mon, 29 Aug 2011 14:06:00 +0000 (14:06 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Mon, 29 Aug 2011 14:06:00 +0000 (14:06 +0000)
SVN revision: 62948

src/bin/e_border.c

index 12e5bf7..de6859b 100644 (file)
@@ -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);