new can of grandma's LEEK B GON
authordiscomfitor <discomfitor>
Sat, 31 Jul 2010 05:17:56 +0000 (05:17 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 31 Jul 2010 05:17:56 +0000 (05:17 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50707 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_edit.c

index 992caee..1096306 100644 (file)
@@ -318,6 +318,8 @@ _edje_import_font_file(Edje *ed, const char *path, const char *entry)
          }
       if (fread(fdata, fsize, 1, f) != 1)
         {
+            free(fdata);
+            fclose(f);
            ERR("Unable to read all of font file \"%s\"", path);
            return EINA_FALSE;
         }