evas: Fix double stringshare_del
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 28 Jun 2016 10:17:24 +0000 (19:17 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 28 Jun 2016 10:21:46 +0000 (19:21 +0900)
A stringshare for font "style" was not properly duplicated,
resulting in lots of invalid stringshare pointers.

Ping @id213sin (commit 2ce33e73a7d48d4b54a075c07f12c0162).

src/lib/evas/canvas/evas_font_dir.c

index 1369dfe..b5c1d31 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;
 }