Check whether functions exist before executing them.

SVN revision: 39521
This commit is contained in:
Sebastian Dransfeld 2009-03-17 13:39:23 +00:00
parent a11beb0a96
commit 8d40d92f83
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ evas_common_load_rgba_image_module_from_file(Image_Entry *ie)
if (!evas_module_load(em)) continue;
evas_image_load_func = em->functions;
evas_module_use(em);
if (evas_image_load_func->file_head(ie, ie->file, ie->key))
if (evas_image_load_func && evas_image_load_func->file_head(ie, ie->file, ie->key))
{
if (evas_modules != l)
{