evas: Fix double stringshare_del 57/77957/1
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 28 Jun 2016 10:17:24 +0000 (19:17 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Sat, 2 Jul 2016 04:19:24 +0000 (13:19 +0900)
A stringshare for font "style" was not properly duplicated,
resulting in lots of invalid stringshare pointers.

Ping @id213sin (commit 2ce33e73a7d48d4b54a075c07f12c0162).

Change-Id: Ie87e42b9f3d5fd365d000798c9493a660a240954

src/lib/evas/canvas/evas_font_dir.c

index cd2db5b..81be889 100644 (file)
@@ -456,6 +456,7 @@ evas_font_desc_dup(const Evas_Font_Description *fdesc)
    new->name = eina_stringshare_ref(new->name);
    new->fallbacks = eina_stringshare_ref(new->fallbacks);
    new->lang = eina_stringshare_ref(new->lang);
+   new->style = eina_stringshare_ref(new->style);
 
    return new;
 }