ensure cleanup on autocache upon destruction
Fixes double free.
This commit is contained in:
@@ -28,6 +28,12 @@ PreviewAutoCacher::PreviewAutoCacher() :
|
||||
connect(&delayed_requeue_timer_, &QTimer::timeout, this, &PreviewAutoCacher::RequeueFrames);
|
||||
}
|
||||
|
||||
PreviewAutoCacher::~PreviewAutoCacher()
|
||||
{
|
||||
// Ensure everything is cleaned up appropriately
|
||||
SetViewerNode(nullptr);
|
||||
}
|
||||
|
||||
RenderTicketPtr PreviewAutoCacher::GetSingleFrame(const rational &t)
|
||||
{
|
||||
if (single_frame_render_) {
|
||||
|
||||
@@ -24,6 +24,8 @@ class PreviewAutoCacher : public QObject
|
||||
public:
|
||||
PreviewAutoCacher();
|
||||
|
||||
virtual ~PreviewAutoCacher() override;
|
||||
|
||||
RenderTicketPtr GetSingleFrame(const rational& t);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user