Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Telemetry
KUserFeedback
Commits
b90c47b9
Commit
b90c47b9
authored
Feb 18, 2017
by
Volker Krause
Browse files
Don't leak aggregators on shutdown
parent
5e07543c
Changes
1
Hide whitespace changes
Inline
Side-by-side
analyzer/analytics/analyticsview.cpp
View file @
b90c47b9
...
...
@@ -133,6 +133,11 @@ AnalyticsView::~AnalyticsView()
settings
.
beginGroup
(
QStringLiteral
(
"Analytics"
));
settings
.
setValue
(
QStringLiteral
(
"TimeAggregationMode"
),
m_timeAggregationModel
->
aggregationMode
());
settings
.
endGroup
();
// the chart views can't handle null or deleted charts, so set them to something safe
ui
->
singularChartView
->
setChart
(
m_nullSingularChart
.
get
());
ui
->
timelineChartView
->
setChart
(
m_nullTimelineChart
.
get
());
qDeleteAll
(
m_aggregators
);
}
void
AnalyticsView
::
setRESTClient
(
RESTClient
*
client
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment