GTK3 KDM window fixes backported from v2.15.x.
[dcpomatic.git] / src / wx / audio_plot.cc
index cabbd206af5e0e22302e8d7decddc325bc3377c6..2c297a7a8e3d33919bcedbb4b78ea4c399fe2376 100644 (file)
@@ -26,6 +26,7 @@
 #include <wx/graphics.h>
 #include <boost/bind.hpp>
 #include <iostream>
+#include <cfloat>
 
 using std::cout;
 using std::vector;
@@ -144,6 +145,7 @@ AudioPlot::paint ()
        if (!_analysis || _analysis->channels() == 0) {
                gc->SetFont (gc->CreateFont (*wxNORMAL_FONT));
                gc->DrawText (_message, 32, 32);
+               delete gc;
                return;
        }