Memory management fixes
Some "issues" (manual memory management is an issue, even if it doesn't cause bugs) some of which I caused
- We use proper QObject parenting with attachments, so no need to manually delete them
- Remove the usage of manual memory management for polls, no reason we can't use
unique_ptr