]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/new_gui.hxx
#591: night-time rendering issues, avoid negative color values
[flightgear.git] / src / GUI / new_gui.hxx
index 3f69cab951202134e09b025cecc598af655c2640..dfc1ad812855279369b2e790c6f6ebb693cbad09 100644 (file)
@@ -11,6 +11,7 @@
 #include <functional>
 #include <vector>
 #include <map>
+#include <memory> // for auto_ptr on some systems
 
 class SGBinding;
 
@@ -219,7 +220,7 @@ private:
     // Read all the configuration files in a directory.
     void readDir (const SGPath& path);
 
-    FGMenuBar * _menubar;
+    std::auto_ptr<FGMenuBar> _menubar;
     FGDialog * _active_dialog;
     std::map<std::string,FGDialog *> _active_dialogs;
     std::map<std::string,SGPropertyNode_ptr> _dialog_props;