Fix for bug 462926 (Crash [@ xpc_qsSelfRef::~xpc_qsSelfRef] with getUserData.call). r/sr=jst

This commit is contained in:
Peter Van der Beken 2008-11-04 18:18:12 +01:00
parent aeb2860a5e
commit eac8c19c52
2 changed files with 2 additions and 1 deletions

View File

@ -8,3 +8,4 @@ load 394810-1.html
load 403356-1.html
load 418139-1.svg
load 420513-1.html
load 462926.html

View File

@ -266,7 +266,7 @@ public:
struct xpc_qsSelfRef
{
xpc_qsSelfRef() {}
xpc_qsSelfRef() : ptr(nsnull) {}
explicit xpc_qsSelfRef(nsISupports *p) : ptr(p) {}
~xpc_qsSelfRef() { NS_IF_RELEASE(ptr); }