Fix compositor memory leak after recent color management changes

This commit is contained in:
Brecht Van Lommel 2022-04-01 01:14:01 +02:00
parent d120a083da
commit a250d3d1b7
2 changed files with 6 additions and 0 deletions

View File

@ -225,6 +225,11 @@ OutputSingleLayerOperation::OutputSingleLayerOperation(const Scene *scene,
save_as_render_ = save_as_render;
}
OutputSingleLayerOperation::~OutputSingleLayerOperation()
{
BKE_image_format_free(&format_);
}
void OutputSingleLayerOperation::init_execution()
{
image_input_ = get_input_socket_reader(0);

View File

@ -39,6 +39,7 @@ class OutputSingleLayerOperation : public MultiThreadedOperation {
const char *path,
const char *view_name,
bool save_as_render);
~OutputSingleLayerOperation();
void execute_region(rcti *rect, unsigned int tile_number) override;
bool is_output_operation(bool /*rendering*/) const override