efl/evas: fix that awesome memory leak in E17 and every apps that don't change font...
authorCedric BAIL <cedric.bail@free.fr>
Tue, 12 Feb 2013 06:07:25 +0000 (06:07 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Tue, 12 Feb 2013 06:07:25 +0000 (06:07 +0000)
SVN revision: 83837

src/lib/evas/canvas/evas_object_text.c

index 273d98e..53a35d8 100644 (file)
@@ -417,9 +417,9 @@ _text_font_set(Eo *eo_obj, void *_pd, va_list *list)
 
    if ((!font) || (size <= 0)) return;
 
-   fdesc = evas_font_desc_new();
    if (!(o->cur.font && !strcmp(font, o->cur.font)))
      {
+        fdesc = evas_font_desc_new();
         evas_font_name_parse(fdesc, font);
      }
    else