Don't use wx_ptr for the splash screen.
authorCarl Hetherington <cth@carlh.net>
Tue, 25 Apr 2023 09:03:54 +0000 (11:03 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 Apr 2023 09:03:56 +0000 (11:03 +0200)
commit293f82daa07bbc357940e5dd214f7c534bab0a86
treefb604e1508c04e31336c0c121afadc0662369686
parente87f943433216d294b22853411eca5c582be1066
Don't use wx_ptr for the splash screen.

Using wx_ptr in the wxApp object seems bad because in ~App wxWidgets
deletes all top-level windows in `DeleteAllTLWs` so if ~wx_ptr then
tries to destroy them we get a use-after-free.
src/tools/dcpomatic.cc
src/tools/dcpomatic_editor.cc
src/tools/dcpomatic_kdm.cc
src/tools/dcpomatic_player.cc
src/wx/wx_util.cc
src/wx/wx_util.h