mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 569181. nsCOMPtr<nsMediaList> should be nsRefPtr. r=dbaron
This commit is contained in:
parent
736592869f
commit
2abf52364b
@ -1218,7 +1218,7 @@ Loader::PrepareSheet(nsCSSStyleSheet* aSheet,
|
|||||||
NS_PRECONDITION(aSheet, "Must have a sheet!");
|
NS_PRECONDITION(aSheet, "Must have a sheet!");
|
||||||
|
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
nsCOMPtr<nsMediaList> mediaList(aMediaList);
|
nsRefPtr<nsMediaList> mediaList(aMediaList);
|
||||||
|
|
||||||
if (!aMediaString.IsEmpty()) {
|
if (!aMediaString.IsEmpty()) {
|
||||||
NS_ASSERTION(!aMediaList,
|
NS_ASSERTION(!aMediaList,
|
||||||
|
@ -1899,7 +1899,7 @@ CSSParserImpl::ParseMediaQueryExpression(nsMediaQuery* aQuery)
|
|||||||
PRBool
|
PRBool
|
||||||
CSSParserImpl::ParseImportRule(RuleAppendFunc aAppendFunc, void* aData)
|
CSSParserImpl::ParseImportRule(RuleAppendFunc aAppendFunc, void* aData)
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsMediaList> media = new nsMediaList();
|
nsRefPtr<nsMediaList> media = new nsMediaList();
|
||||||
if (!media) {
|
if (!media) {
|
||||||
mScanner.SetLowLevelError(NS_ERROR_OUT_OF_MEMORY);
|
mScanner.SetLowLevelError(NS_ERROR_OUT_OF_MEMORY);
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
@ -2015,7 +2015,7 @@ CSSParserImpl::ParseGroupRule(nsICSSGroupRule* aRule,
|
|||||||
PRBool
|
PRBool
|
||||||
CSSParserImpl::ParseMediaRule(RuleAppendFunc aAppendFunc, void* aData)
|
CSSParserImpl::ParseMediaRule(RuleAppendFunc aAppendFunc, void* aData)
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsMediaList> media = new nsMediaList();
|
nsRefPtr<nsMediaList> media = new nsMediaList();
|
||||||
if (!media) {
|
if (!media) {
|
||||||
mScanner.SetLowLevelError(NS_ERROR_OUT_OF_MEMORY);
|
mScanner.SetLowLevelError(NS_ERROR_OUT_OF_MEMORY);
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user