This simplifies a bit the code, and avoids manual allocation/deallocation. Few variables are initialized in place, `ui_but_can_align` is simplified too. Not user visible changes expected. Pull Request: https://projects.blender.org/blender/blender/pulls/145051