e: use stringshare_replace in window_border_set
authorBoris Faure <billiob@gmail.com>
Wed, 16 Feb 2011 09:07:44 +0000 (09:07 +0000)
committerBoris Faure <billiob@gmail.com>
Wed, 16 Feb 2011 09:07:44 +0000 (09:07 +0000)
SVN revision: 57077

src/bin/e_actions.c

index fa20197..28ac1bb 100644 (file)
@@ -781,8 +781,9 @@ ACT_FN_GO(window_border_set, __UNUSED__)
         if (bd && params)
           {
              if (bd->bordername)
-                eina_stringshare_del(bd->bordername);
-             bd->bordername = eina_stringshare_add(params);
+               eina_stringshare_replace(&bd->bordername, params);
+             else
+               bd->bordername = eina_stringshare_add(params);
              bd->client.border.changed = 1;
              bd->changed = 1;
           }