Closed Bug 210730 Opened 22 years ago Closed 22 years ago

Can optimize ClassInfoData::GetName a little in failure case

Categories

(Core :: Security: CAPS, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jag+mozilla, Assigned: jag+mozilla)

Details

Attachments

(3 files, 1 obsolete file)

Hmm, and looking at GetFlags, mDidGetFlags should also be set to PR_TRUE for the |else| case, since there's no way other than the constructor to set mClassInfo.
Attached patch ignore this. (obsolete) — Splinter Review
Comment on attachment 126583 [details] [diff] [review] ignore this. You'll end up freeing memory you don't own (|aName|).
Attachment #126583 - Flags: superreview-
Comment on attachment 126583 [details] [diff] [review] ignore this. This is obviously not a good day to be writing code.
Attachment #126583 - Attachment description: Or this... → ignore this.
Attachment #126583 - Attachment is obsolete: true
Comment on attachment 126585 [details] [diff] [review] This should do it (diff -w) r+sr=jag
Attachment #126585 - Flags: superreview+
Attachment #126585 - Flags: review+
Fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: