Bug 892806 - Clean up InflateUTF8String() and related functions.  r=terrence.

--HG--
extra : rebase_source : df901e9900fbd01f1adbe430b9ac52428499681f
Bug 896242. Fix possible crash due to dangling pointer to nsPluginElement. r=mccr8

---
 dom/base/nsPluginArray.cpp |   24 +++++++++++++++++++-----
 dom/base/nsPluginArray.h   |    1 +
 2 files changed, 20 insertions(+), 5 deletions(-)