Fix compositor memory leak after recent color management changes
This commit is contained in:
parent
d120a083da
commit
a250d3d1b7
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue