Commit dc039754 authored by Ulf Hermann's avatar Ulf Hermann Committed by Kai Koehne

Timeline: Don't leak render pass states.

Change-Id: Ib19cd8cc76324e583ed79d8a660bb06a7b154a66
Reviewed-by: default avatarKai Koehne <kai.koehne@theqtcompany.com>
parent 3743211e
......@@ -54,6 +54,10 @@ QSGNode *TimelineRenderPass::State::collapsedOverlay() const
return 0;
}
TimelineRenderPass::State::~State()
{
}
TimelineRenderPass::~TimelineRenderPass() {}
} // namespace Timeline
......@@ -48,6 +48,7 @@ public:
virtual const QVector<QSGNode *> &collapsedRows() const;
virtual QSGNode *expandedOverlay() const;
virtual QSGNode *collapsedOverlay() const;
virtual ~State();
};
virtual ~TimelineRenderPass();
......
......@@ -58,6 +58,7 @@ TimelineRenderState::~TimelineRenderState()
delete d->collapsedRowRoot;
delete d->expandedOverlayRoot;
delete d->collapsedOverlayRoot;
qDeleteAll(d->passes);
delete d;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment