From 1610a12b60c07ae04075d0a20c164589fc10373b Mon Sep 17 00:00:00 2001 From: "stuart.morgan@alumni.case.edu" Date: Sat, 21 Apr 2007 20:10:51 -0700 Subject: [PATCH] Bug 306902. r=josh sr=smfr a=dveditz --- gfx/src/mac/nsUnicodeRenderingToolkit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/src/mac/nsUnicodeRenderingToolkit.cpp b/gfx/src/mac/nsUnicodeRenderingToolkit.cpp index 2117a77d8ab2..0968982d5a12 100644 --- a/gfx/src/mac/nsUnicodeRenderingToolkit.cpp +++ b/gfx/src/mac/nsUnicodeRenderingToolkit.cpp @@ -1126,7 +1126,7 @@ void nsUnicodeRenderingToolkit::GetScriptTextBoundingMetrics( { widths = (Fixed*) nsMemory::Alloc(aLen * sizeof(Fixed)); lefts = (Fixed*) nsMemory::Alloc(aLen * sizeof(Fixed)); - rects = (Rect*) nsMemory::Alloc(aLen * sizeof(Fixed)); + rects = (Rect*) nsMemory::Alloc(aLen * sizeof(Rect)); // if any of the allocations failed the 'else' case below will be executed }