forked from enlightenment/efl
evas - Added eina_stringshare_ref call for fallbacks, lang in font description.
Summary: When the fdesc(Font Description) is duplicated, ref of all of stringshare pointers should be increased. But, in the evas_font_desc_dup API, we only increased ref for name string. It can cause some of memory issues. Reviewers: tasn, woohyun, seoz, Hermet CC: cedric Differential Revision: https://phab.enlightenment.org/D570
This commit is contained in:
parent
f1e1e70650
commit
2bff3d1c2e
|
@ -444,6 +444,8 @@ evas_font_desc_dup(const Evas_Font_Description *fdesc)
|
|||
new->ref = 1;
|
||||
new->is_new = EINA_TRUE;
|
||||
new->name = eina_stringshare_ref(new->name);
|
||||
new->fallbacks = eina_stringshare_ref(new->fallbacks);
|
||||
new->lang = eina_stringshare_ref(new->lang);
|
||||
|
||||
return new;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue