]> git.sesse.net Git - kdenlive/blobdiff - src/colorscopes/histogram.cpp
Fix crash in histogram scope, I don't even understand how it possibly worked before...
[kdenlive] / src / colorscopes / histogram.cpp
index 60b32a1298936c10319c9a866986367d895b1fd1..9fd9ee8eab7351650671a81bdf742aa590db8b94 100644 (file)
@@ -50,12 +50,13 @@ Histogram::Histogram(MonitorManager *manager, QWidget *parent) :
     Q_ASSERT(b);
 
     init();
+    m_histogramGenerator = new HistogramGenerator();
 }
 
 Histogram::~Histogram()
 {
     writeConfig();
-
+    delete m_histogramGenerator;
     delete ui;
     delete m_aUnscaled;
     delete m_aRec601;