Dynamically allocating third-party class

Yes, that’s right but can you think of any reason for the bug? Or any possible solution to try?