Skip to content
Snippets Groups Projects
Commit 66543381 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Set a parent on git actions to make sure they're not leaked


Static leaks, but causes noise in valgrind output. :)

Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 41d400eb
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,8 @@ ParameterActionCommandPair
bool addToLocator)
{
Utils::ParameterAction *action = new Utils::ParameterAction(defaultText, parameterText,
Utils::ParameterAction::EnabledWithParameter);
Utils::ParameterAction::EnabledWithParameter,
this);
Core::Command *command = am->registerAction(action, id, context);
command->setAttribute(Core::Command::CA_UpdateText);
ac->addAction(command);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment