зеркало из https://github.com/mozilla/gecko-dev.git
Fix leaks caused by bug 307532. Patch by biesi, r+sr=bzbarsky
This commit is contained in:
Родитель
07620aae6a
Коммит
aeaa001221
|
@ -2079,9 +2079,10 @@ nsTextFrame::GetSelectionStatus(nsPresContext* aPresContext,
|
|||
{
|
||||
NS_ENSURE_ARG_POINTER(aPresContext);
|
||||
|
||||
//get the selection controller
|
||||
nsISelectionController* selectionController;
|
||||
nsresult rv = GetSelectionController(aPresContext, &selectionController);
|
||||
// get the selection controller
|
||||
nsCOMPtr<nsISelectionController> selectionController;
|
||||
nsresult rv = GetSelectionController(aPresContext,
|
||||
getter_AddRefs(selectionController));
|
||||
if (NS_FAILED(rv) || !selectionController)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче