Fix for crash when checking for a sub document bug 96579 r=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@102827 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -462,7 +462,7 @@ void nsObjectFrame::IsSupportedDocument(nsIContent* aContent, PRBool* aDoc)
|
||||
nsCOMPtr<nsIMIMEService> mimeService = do_GetService(NS_MIMESERVICE_CONTRACTID, &rv);
|
||||
if (NS_FAILED(rv)) return;
|
||||
|
||||
char * contentType;
|
||||
char * contentType = nsnull;
|
||||
rv = mimeService->GetTypeFromURI(uri, &contentType);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (contentType)
|
||||
|
||||
Reference in New Issue
Block a user