Closed Bug 282700 Opened 19 years ago Closed 19 years ago

allocation/free mismatch of gParts and gVariants in nsMathMLChar.cpp

Categories

(Core :: MathML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: David.R.Gardiner, Assigned: David.R.Gardiner)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

PREfast reports the following warnings when analysing this file:

nsmathmlchar.cpp(1172) : warning 283: Allocation/free mismatch:
'?gParts@nsGlyphTableList@@2PAHA' is allocated with array new [], but deleted
with scalar delete (see allocation at line 1163 of
d:\mozilla\mozilla\layout\mathml\base\src\nsmathmlchar.cpp).
problem occurs in function 'InitGlobals'

nsmathmlchar.cpp(1173) : warning 283: Allocation/free mismatch:
'?gVariants@nsGlyphTableList@@2PAHA' is allocated with array new [], but deleted
with scalar delete (see allocation at line 1164 of
d:\mozilla\mozilla\layout\mathml\base\src\nsmathmlchar.cpp).
problem occurs in function 'InitGlobals'

Reproducible: Always

Steps to Reproduce:
Attachment #174671 - Flags: review?(rbs)
Comment on attachment 174671 [details] [diff] [review]
use array delete for stuff that was array new'd.

r+sr=rbs
Attachment #174671 - Flags: superreview+
Attachment #174671 - Flags: review?(rbs)
Attachment #174671 - Flags: review+
rbs, are you going to check this in, or should I?
over to you, bz.
Assignee: rbs → david.gardiner
Checked in for 1.8b2.  Thanks for the patch, David!
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 283681
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: