file-exr: Fix a possible crash upon failure

This commit is contained in:
Mukund Sivaraman 2013-05-04 14:10:42 +05:30
parent 8d89efaff5
commit 7a671d3157
1 changed files with 2 additions and 1 deletions

View File

@ -297,7 +297,8 @@ load_image (const gchar *filename,
if (pixels) if (pixels)
g_free (pixels); g_free (pixels);
exr_loader_unref (loader); if (loader)
exr_loader_unref (loader);
return status; return status;
} }