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 <>
parent 41d400eb
...@@ -188,7 +188,8 @@ ParameterActionCommandPair ...@@ -188,7 +188,8 @@ ParameterActionCommandPair
bool addToLocator) bool addToLocator)
{ {
Utils::ParameterAction *action = new Utils::ParameterAction(defaultText, parameterText, Utils::ParameterAction *action = new Utils::ParameterAction(defaultText, parameterText,
Utils::ParameterAction::EnabledWithParameter); Utils::ParameterAction::EnabledWithParameter,
Core::Command *command = am->registerAction(action, id, context); Core::Command *command = am->registerAction(action, id, context);
command->setAttribute(Core::Command::CA_UpdateText); command->setAttribute(Core::Command::CA_UpdateText);
ac->addAction(command); ac->addAction(command);
Supports Markdown
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