Files
ufraw/06_lensfun_destroy_cleanup.patch
Marcus Meissner 383c2af687 Accepting request 673262 from home:munix9
- added some gentoo/debian patches:
  * ufraw-0.22-jpeg9.patch
  * ufraw-0.22-exiv2-0.27.patch
  * 01_no-gimp-remote.patch
  * 02_CVE-2015-8366.patch
  * 04_fix-abs-gcc-7.patch
  * 05_CVE-2018-19655.patch
  * 06_lensfun_destroy_cleanup.patch

OBS-URL: https://build.opensuse.org/request/show/673262
OBS-URL: https://build.opensuse.org/package/show/graphics/ufraw?expand=0&rev=47
2019-02-12 10:33:40 +00:00

22 lines
743 B
Diff

Description: Fix cleanup of lensfun
Bug-Debian: https://bugs.debian.org/898297
Author: Helmut Grohne <helmut@subdivi.de>, Lauro Moura <lauromoura@gmail.com>
Reviewed-by: Hubert Chathi <uhoreg@debian.org>
Last-Update: 2018-12-02
--- ufraw-0.22.orig/ufraw_ufraw.c
+++ ufraw-0.22/ufraw_ufraw.c
@@ -767,8 +767,10 @@ void ufraw_close(ufraw_data *uf)
g_free(uf->displayProfile);
g_free(uf->RawHistogram);
#ifdef HAVE_LENSFUN
- lf_modifier_destroy(uf->TCAmodifier);
- lf_modifier_destroy(uf->modifier);
+ if (uf->TCAmodifier != NULL)
+ lf_modifier_destroy(uf->TCAmodifier);
+ if (uf->modifier != NULL)
+ lf_modifier_destroy(uf->modifier);
#endif
ufobject_delete(uf->conf->ufobject);
g_free(uf->conf);