Merge branch 'fixMemLeakInMMDigi_21p9' into '21.9'

Fix memory leak in mm digi

See merge request !39060

(cherry picked from commit f3617988)

fa969cae fix memory leak in mm digi by using shared ptr
d7c4047f fix missing &
fa349140 change to unique ptr
1 job for cherry-pick-f361798839a-21.3 in 0 seconds (queued for 14 seconds)