Use wx_ptr for the splash screen.
[dcpomatic.git] / src / tools / dcpomatic_editor.cc
index 51135ef462372f38750aa22f3452d49ce1a1ac36..8e306551f970bc6790606a6795cef8d52f59ba9f 100644 (file)
@@ -431,7 +431,7 @@ private:
 
        bool OnInit () override
        {
-               wxSplashScreen* splash = nullptr;
+               wx_ptr<wxSplashScreen> splash;
                try {
                        wxInitAllImageHandlers ();