[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [vidalia/alpha] We need to destroy the _engine before exiting



commit 770ba619fad7c10f1d20da783df8f41e9bae08cc
Author: Tomás Touceda <chiiph@xxxxxxxxxxxxxx>
Date:   Thu Sep 1 19:55:16 2011 -0300

    We need to destroy the _engine before exiting
---
 src/vidalia/main.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/vidalia/main.cpp b/src/vidalia/main.cpp
index 7e9ad28..cf87c84 100644
--- a/src/vidalia/main.cpp
+++ b/src/vidalia/main.cpp
@@ -204,11 +204,13 @@ main(int argc, char *argv[])
   Vidalia::setQuitOnLastWindowClosed(false);
 
   /* Create an instance of the main window  */
-  MainWindow mainWin;
+  MainWindow *mainWin = new MainWindow();
 
   /* Run Vidalia */
   int ret = vidalia.run();
 
+  delete mainWin;;
+
   /* Vidalia exited, so cleanup our pidfile and return */
   QFile::remove(pidfile);
   vNotice("Vidalia is exiting cleanly (return code %1).").arg(ret);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits