mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-10 17:59:04 -04:00
Fix numerous memory leaks and uses of uninitialized variables
These were discovered when running under teh valgrind MemCheck tool. I have also checked in a suppressions file (wsjtx-valgrind.linux.supp) suitable for use on Linux when running the valgrind MemCheck tool. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6755 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+2
-2
@@ -443,7 +443,7 @@ private:
|
||||
TransceiverFactory transceiver_factory_;
|
||||
QList<QMetaObject::Connection> rig_connections_;
|
||||
|
||||
Ui::configuration_dialog * ui_;
|
||||
QScopedPointer<Ui::configuration_dialog> ui_;
|
||||
|
||||
QSettings * settings_;
|
||||
|
||||
@@ -2407,7 +2407,7 @@ void Configuration::impl::close_rig ()
|
||||
{
|
||||
ui_->test_CAT_push_button->setStyleSheet ("QPushButton {background-color: red;}");
|
||||
Q_EMIT stop_transceiver ();
|
||||
Q_FOREACH (auto const& connection, rig_connections_)
|
||||
for (auto const& connection: rig_connections_)
|
||||
{
|
||||
disconnect (connection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user