Fix memory leak in wp8 plugins

Defect 45147