[tor-commits] [vidalia/alpha] fix possible crash in MessageLog widget at Vidalia exit
chiiph at torproject.org
chiiph at torproject.org
Wed May 9 23:28:52 UTC 2012
commit e07c8f3d866cf52f259b6693224cf61dc4047296
Author: Sebastian Baginski <sebthestampede at gmail.com>
Date: Sun Apr 29 11:20:06 2012 +0200
fix possible crash in MessageLog widget at Vidalia exit
---
changes/bug5690 | 3 +++
src/vidalia/log/MessageLog.h | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/changes/bug5690 b/changes/bug5690
new file mode 100644
index 0000000..a958e6b
--- /dev/null
+++ b/changes/bug5690
@@ -0,0 +1,3 @@
+ Internal cleanups and improvements:
+ o Fix possible dangling pointer access in MessageLog at
+ Vidalia exit. Fixes bug 5690.
diff --git a/src/vidalia/log/MessageLog.h b/src/vidalia/log/MessageLog.h
index 1d48045..6595eea 100644
--- a/src/vidalia/log/MessageLog.h
+++ b/src/vidalia/log/MessageLog.h
@@ -96,7 +96,7 @@ private:
/** The log file used to store log messages. */
LogFile _logFile;
- QStatusBar *_statusBar;
+ QPointer<QStatusBar> _statusBar;
/** Qt Designer generatated QObject **/
Ui::MessageLog ui;
More information about the tor-commits
mailing list