evas: let fix all unref in the same way.
authorCedric BAIL <cedric.bail@free.fr>
Tue, 4 Dec 2012 01:54:22 +0000 (01:54 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Tue, 4 Dec 2012 01:54:22 +0000 (01:54 +0000)
SVN revision: 80120

src/lib/evas/common/evas_text_utils.c

index 0134bd8..9182512 100644 (file)
@@ -60,14 +60,14 @@ evas_common_text_props_content_nofree_unref(Evas_Text_Props *props)
    if (!props->info)
       return;
 
-   if (props->font_instance)
-     {
-        evas_common_font_int_unref(props->font_instance);
-        props->font_instance = NULL;
-     }
-
    if (--(props->info->refcount) == 0)
      {
+        if (props->font_instance)
+          {
+             evas_common_font_int_unref(props->font_instance);
+             props->font_instance = NULL;
+          }
+
         free(props->glyphs);
         props->glyphs = NULL;
         props->glyphs_length = 0;