Closed Bug 715618 Opened 14 years ago Closed 14 years ago

SharedLibrary operator= doesn't handle self assignment properly

Categories

(Core :: Gecko Profiler, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: BenWa, Assigned: BenWa)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Blocks: 713227
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → bgirard
Status: NEW → ASSIGNED
Attachment #586174 - Flags: review?(jmuizelaar)
Attachment #586174 - Flags: review?(jmuizelaar) → review+
Actually, don't you need a free() as well? SharedLibrary x(...,"x"); SharedLibrary y(...,"y"); x = y; the copy of "x" leaks?
Attached patch patch v2Splinter Review
Attachment #586174 - Attachment is obsolete: true
Attachment #586242 - Flags: review?(matspal)
Attachment #586242 - Flags: review?(matspal) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
Component: General → Gecko Profiler
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: