[tracker/tracker-0.10] Fix a crash when destructing QApplication



commit 3bac7bf43c41fa1339df6ecda59e2c277cd66477
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue May 24 13:05:02 2011 +0200

    Fix a crash when destructing QApplication
    
    Apparently it's not ok to destroy a QApplication which seems to be
    designed for use on the stack of the main() function. This indeed
    leaves a small memory leak at the exit of the process.
    
    Fixes NB#259000.

 src/tracker-extract/tracker-albumart-qt.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-albumart-qt.cpp b/src/tracker-extract/tracker-albumart-qt.cpp
index 1be00a7..e74213c 100644
--- a/src/tracker-extract/tracker-albumart-qt.cpp
+++ b/src/tracker-extract/tracker-albumart-qt.cpp
@@ -47,7 +47,10 @@ tracker_albumart_plugin_init (void)
 void
 tracker_albumart_plugin_shutdown (void)
 {
-	delete app;
+	// Apparently isn't destructing a QApplication something you should do, as
+	// QApplication is designed to work on stack of the main() function.
+
+	// delete app;
 }
 
 gboolean



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