diff --git a/widget/src/xlib/nsDragService.cpp b/widget/src/xlib/nsDragService.cpp index 769f8f871bb6..6680e13f2e06 100644 --- a/widget/src/xlib/nsDragService.cpp +++ b/widget/src/xlib/nsDragService.cpp @@ -209,8 +209,8 @@ NS_IMETHODIMP nsDragService::GetData(nsITransferable *aTransferable, PRUint32 an nsCOMPtr data; PRUint32 dataLen = 0; - item->GetTransferData(foundFlavor, getter_AddRefs(data), &dataLen); - aTransferable->SetTransferData(foundFlavor, data, dataLen); + item->GetTransferData(foundFlavor.get(), getter_AddRefs(data), &dataLen); + aTransferable->SetTransferData(foundFlavor.get(), data, dataLen); } }