new X(tmp.release())にすべきじゃね