summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-04-04 17:19:34 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2017-04-04 17:41:27 +0200
commitd2edd6edf8547ceb157094dba0fff6d2b08588b2 (patch)
tree912e358ca0402242e8cc2312a0675758881877f4 /media-gfx/ufraw/files/ufraw-0.22-crashfix.patch
parentnet-mail/mswatch: Fix gcc6 support, bug #594226 by Peter Levine, drop autotoo... (diff)
downloadgentoo-d2edd6edf8547ceb157094dba0fff6d2b08588b2.tar.gz
gentoo-d2edd6edf8547ceb157094dba0fff6d2b08588b2.tar.bz2
gentoo-d2edd6edf8547ceb157094dba0fff6d2b08588b2.zip
media-gfx/ufraw: Fix runtime crash
Gentoo-bug: 608100 Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'media-gfx/ufraw/files/ufraw-0.22-crashfix.patch')
-rw-r--r--media-gfx/ufraw/files/ufraw-0.22-crashfix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/media-gfx/ufraw/files/ufraw-0.22-crashfix.patch b/media-gfx/ufraw/files/ufraw-0.22-crashfix.patch
new file mode 100644
index 000000000000..76fe83fa8f2e
--- /dev/null
+++ b/media-gfx/ufraw/files/ufraw-0.22-crashfix.patch
@@ -0,0 +1,15 @@
+--- a/ufraw_ufraw.c 2015-06-16 04:58:38.000000000 +0100
++++ b/ufraw_ufraw.c 2016-12-18 00:55:45.794466747 +0000
+@@ -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);