Minor optimization to the frame callbacks handling


When destroyed, do not lookup the frame callback in the surface's
callback list to remove it out of there if we know the list shall
be emptied just a moment later anyways.

Change-Id: Id1232e1659bf4e2cebbf054cdfa29928863ca005
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commitd1b0fae9973d735dedc26ebadb572d5ee05576ad
parent1181ce73da72c3a0e1db2fd06456820a21d9ec8a
authorKonstantin Ritt <ritt.ks@gmail.com>
committerKonstantin Ritt <ritt.ks@gmail.com>
commit timeThu, 27 Nov 2025 22:22:17 +0300