diff options
Diffstat (limited to 'src/generators.c')
| -rw-r--r-- | src/generators.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/generators.c b/src/generators.c index 6c65227..5d5ba32 100644 --- a/src/generators.c +++ b/src/generators.c @@ -502,6 +502,7 @@ generate_image_for_size (TGallerySetup *setup, if (! img_ref_dst) { g_free (img_src); g_free (img_dst); + exif_data_free (exif_data); return res; } ref_img_w = ref_img_h = 0; @@ -510,6 +511,7 @@ generate_image_for_size (TGallerySetup *setup, if (ref_img_w <= 0 || ref_img_h <= 0) { g_free (img_src); g_free (img_dst); + exif_data_free (exif_data); return res; } /* Browsers need exactly n-factor of the original size */ @@ -519,6 +521,7 @@ generate_image_for_size (TGallerySetup *setup, /* g_print (" Warning: source image %s (%lux%lu) is not large enough for the \"%s\" image size (need %lux%lu)\n", img_src, src_img_w, src_img_h, image_size->name, img_w, img_h); */ g_free (img_src); g_free (img_dst); + exif_data_free (exif_data); return res; } if (setup->warn_resize && (img_w > src_img_w || img_h > src_img_h)) @@ -555,6 +558,7 @@ generate_image_for_size (TGallerySetup *setup, /* printf (" Warning: source image %s (%lux%lu) is not large enough for the \"%s\" image size (need %lux%lu)\n", img_src, src_img_w, src_img_h, image_size->name, tmpw, tmph); */ g_free (img_src); g_free (img_dst); + exif_data_free (exif_data); return res; } /* Calculate dimensions */ |
