Commit f77c121a authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix leak when idx < 0



Change-Id: I51af14fb64acdc5f6904189d394be890e40e1a45
Reviewed-by: Nicolas Arnaud-Cormos's avatarNicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 8d2e7dce
......@@ -338,6 +338,8 @@ void RewriteActionCompressor::compressAddEditActions(QList<RewriteAction *> &act
const int idx = actions.indexOf(action);
if (newAction && idx >= 0)
actions[idx] = newAction;
else
delete newAction;
}
}
......
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