Closed Bug 49148 Opened 26 years ago Closed 26 years ago

MLK: nsWindow::SetTitle() leaks something out of tmpProp

Categories

(Core :: XUL, defect, P3)

All
Linux
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: bruce, Assigned: tajima)

Details

(Keywords: memory-leak, Whiteboard: [nsbeta3+])

Attachments

(1 file)

Under Purify, I'm seeing leaks arise from what appears to be every call to nsWindow::SetTitle() from the tmpProp. I only marked it as Solaris because I am not sure that it isn't a Solaris bug.
Keywords: mlk, nsbeta3
i think dbaron had a fix for this and was going to check it in
Marking All/Linux to mean All Unix/All. Yup, I have a fix and I would've checked it in this morning (along with other XP stuff) if mac hadn't been red...
Assignee: trudelle → dbaron
OS: Solaris → Linux
Hardware: Sun → All
Fix checked in.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Happening again!! I'm seeing this on a build from today.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reassigning to tajima@eng.sun.com, who reversed the condition on the if without moving the freeing back into the else where it was before I fixed this.
Assignee: dbaron → tajima
Status: REOPENED → NEW
The codes to free tmpProp should have been located out of the if. I'll check in the code as soon as the tree gets open this afternoon with the fix for bugzilla 41786.
Status: NEW → ASSIGNED
Doesn't moving it out of the if mean you're trying to free an uninitialized variable if the call fails?
Thanks. tmpProp.value should be initlialized to 0 before calling XGetWMName.
pavlov, dbaron, waterson, please review the attached patch, which is conbinded fix for this bug, 43108, and 41786. As it uses XStdICCTextStyle in the 1st XmbTextListToTextProperty call, the fallback to try STRING encoding for TWM is no longer necessary, as the 1st call takes care of the case.
this patch looks fine. I have tested it in both sawfish and twm
the patch also works here; CCing myself.
Marking nsbeta3+ per I18N Bug Triage.
Whiteboard: [nsbeta3+]
Checked in the fix today.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → FIXED
Oops, forgot about my previous update. I updated wrong bug, sorry. Reopen it.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Worksforme, bruce, please verify.
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → WORKSFORME
Did you check something in?
Yes, I did checked in mozilla/widget/src/gtk/nsWindow.cpp, version 1.297. The tmpProp is no longer used there.
verified wfm (or, the current code frees the temporary prop in either branch).
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: