elementary/font - fixed memory leak

SVN revision: 82440
This commit is contained in:
ChunEon Park 2013-01-09 08:37:48 +00:00
parent e68959696d
commit 05b798b1e1
1 changed files with 6 additions and 2 deletions

View File

@ -47,8 +47,12 @@ _elm_font_properties_get(Eina_Hash **font_hash,
if (!efp)
{
efp = calloc(1, sizeof(Elm_Font_Properties));
if (!efp) return NULL;
if (!efp)
{
free(name);
return NULL;
}
efp->name = eina_stringshare_add(name);
if (font_hash)
{