forked from enlightenment/efl
evas/text: remove misleading comments on glyphs array refs
SVN revision: 82665
This commit is contained in:
parent
b9f05341c3
commit
f0f9f7b7a6
|
@ -299,13 +299,7 @@ evas_common_font_draw_prepare(Evas_Text_Props *text_props)
|
|||
|
||||
if (!reused_glyphs)
|
||||
{
|
||||
/*
|
||||
* Clearing the reference to the glyph array is fine, since this
|
||||
* reference is only used to use this from another thread, which is now
|
||||
* holding the reference.
|
||||
*/
|
||||
if (text_props->glyphs)
|
||||
evas_common_font_glyphs_unref(text_props->glyphs);
|
||||
if (text_props->glyphs) evas_common_font_glyphs_unref(text_props->glyphs);
|
||||
|
||||
text_props->glyphs = malloc(sizeof(*text_props->glyphs));
|
||||
if (!text_props->glyphs) goto error;
|
||||
|
|
|
@ -68,8 +68,6 @@ evas_common_text_props_content_nofree_unref(Evas_Text_Props *props)
|
|||
}
|
||||
|
||||
evas_common_font_glyphs_unref(props->glyphs);
|
||||
/* After unreferencing the glyph array, a thread will still hold
|
||||
* a reference, so this can be safely set to NULL. */
|
||||
props->glyphs = NULL;
|
||||
|
||||
if (props->info->glyph)
|
||||
|
@ -91,8 +89,6 @@ evas_common_text_props_content_unref(Evas_Text_Props *props)
|
|||
return;
|
||||
|
||||
if (props->glyphs) evas_common_font_glyphs_unref(props->glyphs);
|
||||
/* After unreferencing the glyph array, a thread will still hold
|
||||
* a reference, so this can be safely set to NULL. */
|
||||
props->glyphs = NULL;
|
||||
|
||||
if (--(props->info->refcount) == 0)
|
||||
|
|
Loading…
Reference in New Issue