Only need to call media_codec_delegate_unref() now since if this is the last delegate instance, unref will automatically call media_codec_delegate_destroy.