Skip to content

Commit

Permalink
colorequal.c: Use dt_free_align for white_adapted_profile.
Browse files Browse the repository at this point in the history
This is needed as the struct is now alloc aligned.

Continued work of previous commit.
  • Loading branch information
TurboGit committed Jan 16, 2024
1 parent d8cffab commit 54ae10d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/iop/colorequal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ void gui_changed(dt_iop_module_t *self, GtkWidget *w, void *previous)
{
// Re-init the profiles
if(g->white_adapted_profile)
free(g->white_adapted_profile);
dt_free_align(g->white_adapted_profile);
g->white_adapted_profile = D65_adapt_iccprofile(work_profile);
g->work_profile = work_profile;
g->gradients_cached = FALSE;
Expand Down Expand Up @@ -1845,7 +1845,7 @@ void gui_cleanup(struct dt_iop_module_t *self)

if(g->white_adapted_profile)
{
free(g->white_adapted_profile);
dt_free_align(g->white_adapted_profile);
g->white_adapted_profile = NULL;
}

Expand Down Expand Up @@ -1879,7 +1879,7 @@ void gui_init(struct dt_iop_module_t *self)
if(self->dev)
work_profile = dt_ioppr_get_pipe_output_profile_info(self->dev->full.pipe);
if(g->white_adapted_profile)
free(g->white_adapted_profile);
dt_free_align(g->white_adapted_profile);
g->white_adapted_profile = D65_adapt_iccprofile(work_profile);
g->work_profile = work_profile;
g->gradients_cached = FALSE;
Expand Down

0 comments on commit 54ae10d

Please sign in to comment.