diff --git a/mozilla/uriloader/exthandler/mac/nsOSHelperAppService.cpp b/mozilla/uriloader/exthandler/mac/nsOSHelperAppService.cpp index 6b0d9ed39b5..7420e899e88 100644 --- a/mozilla/uriloader/exthandler/mac/nsOSHelperAppService.cpp +++ b/mozilla/uriloader/exthandler/mac/nsOSHelperAppService.cpp @@ -275,13 +275,13 @@ void nsOSHelperAppService::UpdateCreatorInfo(nsIMIMEInfo * aMIMEInfo) if (macFileType == 0 || macCreatorType == 0) { // okay these values haven't been initialized yet so fetch a mime object from internet config. - nsXPIDLCString mimeType; - aMIMEInfo->GetMIMEType(getter_Copies(mimeType)); + nsCAutoString mimeType; + aMIMEInfo->GetMIMEType(mimeType); nsCOMPtr icService (do_GetService(NS_INTERNETCONFIGSERVICE_CONTRACTID)); if (icService) { nsCOMPtr osMimeObject; - icService->FillInMIMEInfo(mimeType, nsnull, getter_AddRefs(osMimeObject)); + icService->FillInMIMEInfo(mimeType.get(), nsnull, getter_AddRefs(osMimeObject)); if (osMimeObject) { osMimeObject->GetMacType(&macFileType);