Commit fb9b810f authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

MainWorkflow: deleting blackoutput when closing.

blackOutput is now private
parent 436fbe92
......@@ -69,6 +69,7 @@ MainWorkflow::~MainWorkflow()
for ( unsigned int i = 0; i < MainWorkflow::NbTrackType; ++i )
delete m_tracks[i];
delete[] m_tracks;
delete MainWorkflow::blackOutput;
}
void
......
......@@ -339,9 +339,6 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
void unsplit( Clip* origin, Clip* splitted, quint32 trackId,
MainWorkflow::TrackType trackType );
/// Pre-filled buffer used when there's nothing to render
static LightVideoFrame* blackOutput;
private:
MainWorkflow( int trackCount = 64 );
~MainWorkflow();
......@@ -384,6 +381,9 @@ class MainWorkflow : public QObject, public Singleton<MainWorkflow>
/// Height used for the render
quint32 m_height;
/// Pre-filled buffer used when there's nothing to render
static LightVideoFrame* blackOutput;
friend class Singleton<MainWorkflow>;
private slots:
......
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