Closed Bug 530138 Opened 15 years ago Closed 15 years ago

npruntime sample plugin not using NPN_MemAlloc when it should

Categories

(Core Graveyard :: Plug-ins, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jaas, Assigned: jaas)

Details

Attachments

(1 file)

The npruntime sample plugin is not using NPN_MemAlloc when it should. See usage of "strdup" in the sample code.
Attached patch fix v1.0Splinter Review
This is the fix, basically the same fix proposed in the stack overflow discussion: http://stackoverflow.com/questions/1431409/firefox-npapi-plugin-development-firefox-freeze-when-calling-a-method
Assignee: nobody → joshmoz
pushed to mozilla-central with added "const" for the literal string http://hg.mozilla.org/mozilla-central/rev/eeceee206420
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: