From 7f5fe9b43c0585d6433edae8b0956803aa697afb Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 29 Sep 2011 15:35:19 +0400 Subject: [PATCH] fix possible segfault --- src/iop/colorout.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/iop/colorout.c b/src/iop/colorout.c index b9cd5c6..d31bb05 100644 --- a/src/iop/colorout.c +++ b/src/iop/colorout.c @@ -466,7 +466,7 @@ void commit_params (struct dt_iop_module_t *self, dt_iop_params_t *p1, dt_dev_pi d->softproof = NULL; d->softproof_enabled = p->softproof_enabled; - if(self->dev->gui_attached) + if(self->dev->gui_attached && self->gui_data != NULL) { dt_iop_colorout_gui_data_t *g = (dt_iop_colorout_gui_data_t *)self->gui_data; g->softproof_enabled = p->softproof_enabled; -- 1.7.3.4