blob: 76fe83fa8f2e04e805237626717a7c0dd6a7d9e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
|