aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/wireshark_application.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-09-11 11:13:23 -0700
committerGerald Combs <gerald@wireshark.org>2015-09-11 20:37:09 +0000
commitb4e972b7297b8835cacfc7ded7170de96140ce37 (patch)
tree7406942cca3cfbc0af3dc2b900b917cb6fe98053 /ui/qt/wireshark_application.cpp
parenteca15bf5ae681312e3e94eb7d1aca67e9c7c4b90 (diff)
Fix a bunch of leaks found by Valgrind.
Change-Id: I8862ed15d354aee487bacd80ab5fb4918423287e Reviewed-on: https://code.wireshark.org/review/10487 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/wireshark_application.cpp')
-rw-r--r--ui/qt/wireshark_application.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp
index 2625950f9b..3dc8297143 100644
--- a/ui/qt/wireshark_application.cpp
+++ b/ui/qt/wireshark_application.cpp
@@ -193,7 +193,7 @@ void WiresharkApplication::refreshRecentFiles(void) {
continue;
}
- rf_status = new RecentFileStatus(ri->filename);
+ rf_status = new RecentFileStatus(ri->filename, this);
connect(rf_status, SIGNAL(statusFound(QString, qint64, bool)),
this, SLOT(itemStatusFinished(QString, qint64, bool)), Qt::QueuedConnection);
@@ -981,7 +981,7 @@ QList<recent_item_status *> WiresharkApplication::recentItems() const {
return recent_items_;
}
-void WiresharkApplication::addRecentItem(const QString &filename, qint64 size, bool accessible) {
+void WiresharkApplication::addRecentItem(const QString filename, qint64 size, bool accessible) {
recent_item_status *ri = new(recent_item_status);
ri->filename = filename;