Use wx_ptr for the splash screen.
[dcpomatic.git] / src / tools / dcpomatic_kdm.cc
index 87a77c6260541c38b649fa71d729e3bfca239e9b..673c54f7839ea0b4122875ae0c980f6b7567fd63 100644 (file)
@@ -770,7 +770,7 @@ private:
 
        bool OnInit () override
        {
-               wxSplashScreen* splash = nullptr;
+               wx_ptr<wxSplashScreen> splash;
 
                try {
                        wxInitAllImageHandlers ();