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
PIM
Akonadi
Commits
b368f773
Commit
b368f773
authored
Apr 06, 2021
by
David Faure
Browse files
Fix memory leak detected by ASAN, by passing qApp as parent to QTranslator.
parent
2a669975
Pipeline
#56652
passed with stage
in 14 minutes and 13 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/agentbase/agentbase.cpp
View file @
b368f773
...
...
@@ -917,7 +917,7 @@ QString AgentBase::parseArguments(int argc, char **argv)
// strip off full path and possible .exe suffix
const
QString
catalog
=
fi
.
baseName
();
auto
translator
=
new
QTranslator
();
auto
translator
=
new
QTranslator
(
qApp
);
translator
->
load
(
catalog
);
QCoreApplication
::
installTranslator
(
translator
);
...
...
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