Skip to content
GitLab
Menu
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
c229beef
Commit
c229beef
authored
Feb 18, 2017
by
Volker Krause
Browse files
Don't leak data sources
parent
0786ffba
Changes
2
Hide whitespace changes
Inline
Side-by-side
provider/core/provider.cpp
View file @
c229beef
...
...
@@ -48,6 +48,7 @@ class ProviderPrivate
{
public:
ProviderPrivate
(
Provider
*
qq
);
~
ProviderPrivate
();
void
reset
();
int
currentApplicationTime
()
const
;
...
...
@@ -121,6 +122,11 @@ ProviderPrivate::ProviderPrivate(Provider *qq)
QObject
::
connect
(
&
encouragementTimer
,
SIGNAL
(
timeout
()),
q
,
SLOT
(
emitShowEncouragementMessage
()));
}
ProviderPrivate
::~
ProviderPrivate
()
{
qDeleteAll
(
dataSources
);
}
void
ProviderPrivate
::
reset
()
{
startCount
=
0
;
...
...
provider/core/provider.h
View file @
c229beef
...
...
@@ -63,7 +63,7 @@ public:
void
setStatisticsCollectionMode
(
StatisticsCollectionMode
mode
);
/** Adds a data source for statistical data collection.
* @param source The data source to add.
* @param source The data source to add.
The Provider takes ownership of @p source.
* @param mode The statistics collection mode this source belongs to. Data is only
* send to the server for this source is a sufficiently high collection mode is configured
* by the user. @c NoStatistics is not allowed.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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