Permalink
Browse files
Qt: Fix memory leak in LogController
- Loading branch information...
Showing
with
5 additions
and
0 deletions.
-
+4
−0
src/platform/qt/LogController.cpp
-
+1
−0
src/platform/qt/LogController.h
|
|
@@ -25,6 +25,10 @@ LogController::LogController(int levels, QObject* parent) |
|
|
}
|
|
|
}
|
|
|
|
|
|
+LogController::~LogController() {
|
|
|
+ mLogFilterDeinit(&m_filter);
|
|
|
+}
|
|
|
+
|
|
|
LogController::Stream LogController::operator()(int category, int level) {
|
|
|
return Stream(this, category, level);
|
|
|
}
|
|
|
|
|
|
@@ -35,6 +35,7 @@ Q_OBJECT |
|
|
|
|
|
public:
|
|
|
LogController(int levels, QObject* parent = nullptr);
|
|
|
+ ~LogController();
|
|
|
|
|
|
int levels() const { return m_filter.defaultLevels; }
|
|
|
mLogFilter* filter() { return &m_filter; }
|
|
|
|
0 comments on commit
3be77c1