Merge "Release resource before send MSG_RESOURCE_LOST message to TIS"