Ensure that we cancel user passes when they are destroyed


The user pass manager maintains a list of passes that are scheduled to
run, so we need to notify the manager when those user passes are about
to be destroyed and should be removed from the execution list.

Pick-to: 6.11
Change-Id: I75daf15512dbd68443cb935555e3b2f8b158b876
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit86be19c7d1fef57bad14d0235d43c4c9fa78a520
parenta331b8c89980bcc7004f8497113d5fc6051ee531
authorChristian Strømme <christian.stromme@qt.io>
committerChristian Strømme <christian.stromme@qt.io>
commit timeWed, 4 Feb 2026 18:42:14 +0100