[Media Common] [VP] [MCPY] Avoid double free when init MCPY fails

Do not free resources after its ownership is transferred.
10 files changed