Fix memory leak.
[dcpomatic.git] / src / tools / dcpomatic_server.cc
index e7579f74b166648227c0e53bfc74396909a3a3a2..37fcc34cdadc91603f6feb52e3cb8c2ebfe76490 100644 (file)
@@ -161,7 +161,9 @@ public:
 private:
        void status ()
        {
-               _status = new StatusDialog ();
+               if (!_status) {
+                       _status = new StatusDialog ();
+               }
                _status->Show ();
        }