fixed warning: deleting pointer to incomplete type.
Merge pull request #7412 from Dhilan007/v3-320final

fixed warning: deleting pointer to incomplete type.