Fix warning cause by previous libdcp bump.
[dcpomatic.git] / src / wx / dir_picker_ctrl.cc
index 6c8fdd1fc3e6b48c82505c7e4278b7c428156466..4c19da42af60662672c31d68536227e53c5ef74b 100644 (file)
@@ -83,9 +83,8 @@ DirPickerCtrl::GetPath () const
 void
 DirPickerCtrl::browse_clicked ()
 {
-       wxDirDialog* d = new wxDirDialog (this);
+       auto d = make_wx<wxDirDialog>(this);
        if (d->ShowModal () == wxID_OK) {
                SetPath (d->GetPath ());
        }
-       d->Destroy ();
 }