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:
Youngbok Shin 2014-02-19 10:44:34 +00:00 committed by Tom Hacohen
parent f1e1e70650
commit 2bff3d1c2e
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}