Use wx_ptr more.
[dcpomatic.git] / src / wx / content_panel.h
index 8f25353b3c4167eec241dfa42d7f7a4979983d4b..88686067221253ea674bf66ef611727cbc101706 100644 (file)
@@ -133,7 +133,7 @@ private:
        EnumIndexedVector<TextPanel*, TextType> _text_panel;
        TimingPanel* _timing_panel;
        ContentMenu* _menu;
-       TimelineDialog* _timeline_dialog = nullptr;
+       wx_ptr<TimelineDialog> _timeline_dialog;
        wxNotebook* _parent;
        wxWindow* _last_selected_tab = nullptr;