summaryrefslogtreecommitdiffstats
path: root/application/widgets
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-08-19 09:04:58 +0200
committerPetr Mrázek <peterix@gmail.com>2016-08-19 09:04:58 +0200
commiteb747e08b78d8630413b9bdb3a96108ccfcc2ac8 (patch)
treec6edecbc9c79e08dcb03d0248f2840a057fc8d24 /application/widgets
parent67eca08b2260f19ff296c0b6cb73eb3b0479e4b2 (diff)
downloadMultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.tar
MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.tar.gz
MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.tar.lz
MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.tar.xz
MultiMC-eb747e08b78d8630413b9bdb3a96108ccfcc2ac8.zip
NOISSUE fix minor memory leaks
Diffstat (limited to 'application/widgets')
-rw-r--r--application/widgets/LogView.cpp1
-rw-r--r--application/widgets/PageContainer.cpp1
-rw-r--r--application/widgets/PageContainer.h1
3 files changed, 1 insertions, 2 deletions
diff --git a/application/widgets/LogView.cpp b/application/widgets/LogView.cpp
index 9cd91b2e..8e0346fa 100644
--- a/application/widgets/LogView.cpp
+++ b/application/widgets/LogView.cpp
@@ -10,6 +10,7 @@ LogView::LogView(QWidget* parent) : QPlainTextEdit(parent)
LogView::~LogView()
{
+ delete m_defaultFormat;
}
void LogView::setWordWrap(bool wrapping)
diff --git a/application/widgets/PageContainer.cpp b/application/widgets/PageContainer.cpp
index 04da5c8b..24814d57 100644
--- a/application/widgets/PageContainer.cpp
+++ b/application/widgets/PageContainer.cpp
@@ -126,7 +126,6 @@ void PageContainer::refresh()
void PageContainer::createUI()
{
m_pageStack = new QStackedLayout;
- m_filter = new QLineEdit;
m_pageList = new PageView;
m_header = new QLabel();
m_iconHeader = new IconLabel(this, QIcon(), QSize(24, 24));
diff --git a/application/widgets/PageContainer.h b/application/widgets/PageContainer.h
index 84504fb6..93971209 100644
--- a/application/widgets/PageContainer.h
+++ b/application/widgets/PageContainer.h
@@ -60,7 +60,6 @@ private:
QSortFilterProxyModel *m_proxyModel;
PageModel *m_model;
QStackedLayout *m_pageStack;
- QLineEdit *m_filter;
QListView *m_pageList;
QLabel *m_header;
IconLabel *m_iconHeader;