diff --git a/js/src/xpconnect/src/xpccomponents.cpp b/js/src/xpconnect/src/xpccomponents.cpp index 3df9a7a9683..7a5fe67a661 100644 --- a/js/src/xpconnect/src/xpccomponents.cpp +++ b/js/src/xpconnect/src/xpccomponents.cpp @@ -260,12 +260,9 @@ nsXPCInterfaces::CacheDynaProp(JSContext *cx, JSObject *obj, jsid id, } NS_RELEASE(nsid_wrapper); } - else - { - NS_RELEASE(nsid); - } NS_RELEASE(xpc); } + NS_RELEASE(nsid); } } } @@ -499,12 +496,9 @@ nsXPCClasses::CacheDynaProp(JSContext *cx, JSObject *obj, jsid id, } NS_RELEASE(nsid_wrapper); } - else - { - NS_RELEASE(nsid); - } NS_RELEASE(xpc); } + NS_RELEASE(nsid); } } } @@ -777,12 +771,9 @@ nsXPCClassesByID::CacheDynaProp(JSContext *cx, JSObject *obj, jsid id, } NS_RELEASE(nsid_wrapper); } - else - { - NS_RELEASE(nsid); - } NS_RELEASE(xpc); } + NS_RELEASE(nsid); } } }