Use E_NEW and E_FREE for creating & deleting E_Theme_Result.

SVN revision: 41455
This commit is contained in:
Christopher Michael 2009-07-20 14:47:40 +00:00
parent 2411e02814
commit 4de27170c4
1 changed files with 2 additions and 2 deletions

View File

@ -302,9 +302,9 @@ e_theme_file_set(const char *category, const char *file)
eina_stringshare_del(res->file);
}
if (res->cache) eina_stringshare_del(res->cache);
free(res);
E_FREE(res);
}
res = calloc(1, sizeof(E_Theme_Result));
res = E_NEW(E_Theme_Result, 1);
res->file = eina_stringshare_add(file);
e_filereg_register(res->file);
if (!mappings)