Evas textblock: fix cached markup's stringshare refs

The last fix 34020ed131 was missing a
stringshare_del for the NOP case of markup_set. It led to a
constantly increasing ref count of the cached markup.

@fix
This commit is contained in:
Daniel Hirt 2016-02-28 17:33:40 +02:00
parent 84fd52921e
commit c7d45032dd
1 changed files with 1 additions and 0 deletions

View File

@ -6853,6 +6853,7 @@ _evas_textblock_text_markup_set(Eo *eo_obj EINA_UNUSED, Evas_Textblock_Data *o,
text = eina_stringshare_add(text);
if (text == o->markup_text)
{
eina_stringshare_del(text);
/* Text is the same, do nothing. */
return;
}