diff --git a/content/xul/content/src/nsXULAttributes.h b/content/xul/content/src/nsXULAttributes.h index b83e04bae20a..269fc9d1002f 100644 --- a/content/xul/content/src/nsXULAttributes.h +++ b/content/xul/content/src/nsXULAttributes.h @@ -54,7 +54,7 @@ struct nsClassList { } ~nsClassList(void) { - NS_RELEASE(mAtom); + NS_IF_RELEASE(mAtom); if (nsnull != mNext) { delete mNext; } diff --git a/rdf/content/src/nsXULAttributes.h b/rdf/content/src/nsXULAttributes.h index b83e04bae20a..269fc9d1002f 100644 --- a/rdf/content/src/nsXULAttributes.h +++ b/rdf/content/src/nsXULAttributes.h @@ -54,7 +54,7 @@ struct nsClassList { } ~nsClassList(void) { - NS_RELEASE(mAtom); + NS_IF_RELEASE(mAtom); if (nsnull != mNext) { delete mNext; }