add virtual destructor
Merge pull request #7732 from andyque/addDLLExportToLayoutParameter

add virtual destructor