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

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

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Thorbjørn Lindeijer
2010-03-22 14:18:22 +01:00
parent 41d400eb24
commit 66543381b0

View File

@@ -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);