Bug 288761. Fix leak of rendering context. r+sr=roc,a=asa

This commit is contained in:
roc+%cs.cmu.edu 2005-10-12 19:12:47 +00:00
parent 4a6dc50c3e
commit 402016b8b3

View File

@ -229,8 +229,7 @@ nsresult nsTextAccessibleWrap::GetCharacterExtents(PRInt32 aStartOffset, PRInt32
nsIWidget *widget = frame->GetWindow();
NS_ENSURE_TRUE(widget, NS_ERROR_FAILURE);
nsIRenderingContext *rendContext;
rendContext = widget->GetRenderingContext();
nsCOMPtr<nsIRenderingContext> rendContext(getter_AddRefs(widget->GetRenderingContext()));
nsPoint startPoint, endPoint;
nsIFrame *startFrame = GetPointFromOffset(frame, presContext, rendContext,