Closed Bug 249903 Opened 20 years ago Closed 20 years ago

nsGNOMERegistry::HandlerExists uses gconf client after g_object_unref()ing it

Categories

(Core Graveyard :: File Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chpe, Unassigned)

References

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 Build Identifier: nsGNOMERegistry::HandlerExists uses the default GConf client after unreffing it. Reproducible: Always Steps to Reproduce:
Attached patch proposed fix (obsolete) (deleted) — Splinter Review
Defer unreffing the GConf client until after we're done with it.
Attachment #152359 - Flags: superreview?(bzbarsky)
Attachment #152359 - Flags: review?(bryner)
Comment on attachment 152359 [details] [diff] [review] proposed fix I'd prefer if you just move isEnabled outside of the |if (app)|, initializing it to false, then have a single unref and return at the end of the function. r=bryner with that change.
Attachment #152359 - Flags: review?(bryner) → review+
confirming bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch updated patch as requested by the reviewer (obsolete) (deleted) — Splinter Review
Attachment #152359 - Attachment is obsolete: true
Attachment #152359 - Flags: superreview?(bzbarsky)
Comment on attachment 152362 [details] [diff] [review] updated patch as requested by the reviewer Carrying forward bryner's r+, and asking for sr
Attachment #152362 - Flags: superreview?(bzbarsky)
Attachment #152362 - Flags: review+
Comment on attachment 152362 [details] [diff] [review] updated patch as requested by the reviewer >Index: nsGNOMERegistry.cpp >+ return isEnabled ? PR_TRUE : PR_FALSE; return isEnabled != FALSE; sr=darin with that change.
Attachment #152362 - Flags: superreview?(bzbarsky) → superreview+
This is fixed in trunk by the checkin from bug 258802.
marking so
Status: NEW → RESOLVED
Closed: 20 years ago
Depends on: 258802
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: