mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
[Bug 706113] Removing null checks from VideoDocument.cpp
This commit is contained in:
parent
064f52583c
commit
d70a096895
@ -84,8 +84,6 @@ VideoDocument::StartDocumentLoad(const char* aCommand,
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
mStreamListener = new MediaDocumentStreamListener(this);
|
||||
if (!mStreamListener)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
// Create synthetic document
|
||||
rv = CreateSyntheticVideoDocument(aChannel,
|
||||
@ -158,7 +156,6 @@ nsresult
|
||||
NS_NewVideoDocument(nsIDocument** aResult)
|
||||
{
|
||||
mozilla::dom::VideoDocument* doc = new mozilla::dom::VideoDocument();
|
||||
NS_ENSURE_TRUE(doc, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
NS_ADDREF(doc);
|
||||
nsresult rv = doc->Init();
|
||||
|
Loading…
Reference in New Issue
Block a user