Closed Bug 618525 Opened 15 years ago Closed 15 years ago

_create_locale needs to be paired with _free_locale

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bjacob, Assigned: bjacob)

Details

Attachments

(1 file)

From bug 616290 comment 2: Comment on attachment 494836 [details] [diff] [review] upgrade to 498 >+#ifdef _MSC_VER >+ return _atof_l(str, _create_locale(LC_NUMERIC, "C")); Whoops. Every _create_locale needs to be paired with _free_locale...
This fixes it. Note that this is a leak with DOS implications since it's triggered by content. You could have a shader with 1000 float literals, and you could compile it repeatedly. So it should be a blocker.
Assignee: nobody → bjacob
Status: NEW → ASSIGNED
Attachment #497029 - Flags: review?(vladimir)
blocking2.0: --- → ?
http://hg.mozilla.org/mozilla-central/rev/32ebdd4db3b6 (vlad said a+ on IRC, and you should trust me anyway because I have implanted a trojan chip in your brain)
Status: ASSIGNED → RESOLVED
blocking2.0: ? → ---
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: