prevent early stringshare death

SVN revision: 61620
This commit is contained in:
Mike Blumenkrantz 2011-07-23 19:25:06 +00:00
parent 17765fdae2
commit 8031da1778
1 changed files with 1 additions and 2 deletions

View File

@ -374,8 +374,7 @@ _e_pointer_type_set(E_Pointer *p,
/* Check if this pointer is already set */
if ((p->type) && (!strcmp(p->type, type))) return;
if (p->type) eina_stringshare_del(p->type);
p->type = eina_stringshare_add(type);
eina_stringshare_replace(&p->type, type);
/* Do not set type if in "hidden mode" */
if (!e_config->show_cursor)