[tracker] Fix a crash when destructing QApplication
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] Fix a crash when destructing QApplication
- Date: Tue, 24 May 2011 11:06:56 +0000 (UTC)
commit 851b1d05f9880ea336444317396753dcd6c7d9f1
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]