summaryrefslogtreecommitdiffstats
path: root/dom/html/VideoDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/VideoDocument.cpp')
-rw-r--r--dom/html/VideoDocument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/html/VideoDocument.cpp b/dom/html/VideoDocument.cpp
index 1bd898564..76b2e326f 100644
--- a/dom/html/VideoDocument.cpp
+++ b/dom/html/VideoDocument.cpp
@@ -90,7 +90,7 @@ VideoDocument::CreateSyntheticVideoDocument(nsIChannel* aChannel,
nsresult rv = MediaDocument::CreateSyntheticDocument();
NS_ENSURE_SUCCESS(rv, rv);
- Element* body = GetBodyElement();
+ RefPtr<Element> body = GetBodyElement();
if (!body) {
NS_WARNING("no body on video document!");
return NS_ERROR_FAILURE;