Closed Bug 70207 Opened 25 years ago Closed 25 years ago

get_js_status returns a string allocated with a mozilla allocator

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: pepper, Assigned: blizzard)

Details

Attachments

(2 files)

When using the gtkmozembed widget to get JavaScript status, mozilla returns a string allocated by mozilla, causing core dumps when freeing it from a gtk app.
Over to Chris
Assignee: adamlock → blizzard
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → mozilla0.9
Correction: Changing QA contact for the Embed API bugs to David Epstein.
QA Contact: mdunn → depstein
Target Milestone: mozilla0.9 → mozilla0.9.1
Attached patch patch — — Splinter Review
See my comment of 2001-05-18 18:11 in bug #78398 for how I hope to solve your problem in the future (using string `generators'). Prefer the global |ToNewCString| from "nsReadableUtils.h" over the member function, since the member function will be going away in the near future. Other than that, your patch seems to be as good as it can be, given the string machinery that's available to you. I hope to make it better soon, as per the bug above. After you move to the global |ToNewCString| (or convince me the member is better for you :-), then, sr=scc.
r=pavlov
assuming you change .ToNewCString() to ToNewCString() as per scc's comment, r=arik course it's kinda moot cause pav beat me to it... ah well...
Checked in. Thanks, guys!
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Reassign qa contact to Dharma, who's working with js.
QA Contact: depstein → dsirnapalli
-- Verified.
Status: RESOLVED → VERIFIED
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: