Qt: do not leak ActionsManager on exit.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 24 Jan 2009 10:48:00 +0000 (11:48 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 24 Jan 2009 10:48:00 +0000 (11:48 +0100)
modules/gui/qt4/main_interface.cpp

index b2faf05..bce2c8c 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "main_interface.hpp"
 #include "input_manager.hpp"
+#include "actions_manager.hpp"
 
 #include "util/customwidgets.hpp"
 #include "util/qt_dirs.hpp"
@@ -249,6 +250,8 @@ MainInterface::~MainInterface()
         delete playlistWidget;
     }
 
+    ActionsManager::killInstance();
+
     settings->beginGroup( "MainWindow" );
 
     settings->setValue( "pl-dock-status", (int)i_pl_dock );