forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user