fixed warning: deleting pointer to incomplete type.
Merge pull request #7414 from samuele3hu/v3_hot_fix

Fix the tests-lua crash on windows platform
Merge pull request #7412 from Dhilan007/v3-320final

fixed warning: deleting pointer to incomplete type.