Skip to content

Commit

Permalink
Pipe global thread lock: release it also on return with error
Browse files Browse the repository at this point in the history
Fucking goto
  • Loading branch information
aurelienpierre committed Feb 7, 2025
1 parent a3b86f5 commit b8aca33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/imageio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,7 @@ int dt_imageio_export_with_flags(const int32_t imgid, const char *filename,
return 0; // success

error:
dt_pthread_mutex_unlock(&darktable.pipeline_threadsafe);
dt_dev_pixelpipe_cleanup(&pipe);
error_early:
dt_dev_cleanup(&dev);
Expand Down

0 comments on commit b8aca33

Please sign in to comment.