Closed Bug 530138 Opened 12 years ago Closed 12 years ago

npruntime sample plugin not using NPN_MemAlloc when it should

Categories

(Core :: Plug-ins, defect)

defect
Not set
normal

Tracking

()

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: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.