Commit 66543381 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer

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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment