Fix memory leak.
authorCarl Hetherington <cth@carlh.net>
Fri, 9 Oct 2015 10:25:37 +0000 (11:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 9 Oct 2015 12:45:12 +0000 (13:45 +0100)
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 ();
        }